46 lines
1.3 KiB
C#
46 lines
1.3 KiB
C#
// Copyright (c) 2017 schick Informatik
|
|
// Description: Infected Area Bearbeitungsdialog
|
|
//
|
|
|
|
using System.Windows;
|
|
|
|
using ENI2.Controls;
|
|
using bsmd.database;
|
|
|
|
namespace ENI2.EditControls
|
|
{
|
|
/// <summary>
|
|
/// Interaction logic for EditInfectedAreaDialog.xaml
|
|
/// </summary>
|
|
public partial class EditInfectedAreaDialog : EditWindowBase
|
|
{
|
|
public EditInfectedAreaDialog()
|
|
{
|
|
InitializeComponent();
|
|
this.Loaded += EditInfectedAreaDialog_Loaded;
|
|
}
|
|
|
|
public InfectedArea InfectedArea { get; set; }
|
|
|
|
private void EditInfectedAreaDialog_Loaded(object sender, RoutedEventArgs e)
|
|
{
|
|
this.textBoxInfectedAreaPort.Text = this.InfectedArea.InfectedAreaPort;
|
|
this.datePickerInfectedAreaDate.SelectedDate = this.InfectedArea.InfectedAreaDate;
|
|
|
|
this.AddVisible = true;
|
|
this.OKClicked += EditInfectedAreaDialog_OKClicked;
|
|
}
|
|
|
|
public void CopyValuesToEntity()
|
|
{
|
|
this.InfectedArea.InfectedAreaPort = this.textBoxInfectedAreaPort.Text;
|
|
this.InfectedArea.InfectedAreaDate = this.datePickerInfectedAreaDate.SelectedDate;
|
|
}
|
|
|
|
private void EditInfectedAreaDialog_OKClicked()
|
|
{
|
|
this.CopyValuesToEntity();
|
|
}
|
|
}
|
|
}
|