Files
CustomerPanel-Test/forms/announcementForm.xaml.cs
2026-03-05 09:56:57 +01:00

43 lines
990 B
C#

using C4IT_CustomerPanel.libs;
using System;
namespace C4IT_CustomerPanel.forms
{
/// <summary>
/// Interaktionslogik für announcementForm.xaml
/// </summary>
public partial class AnnouncementForm
{
public AnnouncementForm()
{
InitializeComponent();
Left = FormHelper.CenterOfScreen().X;
Top = FormHelper.CenterOfScreen().Y;
}
private void LeftMouseDown_Event(object sender, EventArgs e)
{
this.DragMove();
}
public void UpdateForm(string createdDate, string subject, string main)
{
TxtCreatedDate.Text = createdDate;
TxtSubject.Text = subject;
WebMain.NavigateToString(main);
}
private void OnCloseClicked(object sender, EventArgs e)
{
Hide();
GC.Collect();
}
}
}