40 lines
852 B
C#
40 lines
852 B
C#
using System.Windows.Forms;
|
|
|
|
namespace ResultsBrowser.Filters
|
|
{
|
|
public partial class BatchNrFilterUI : UserControl
|
|
{
|
|
BatchNrFilter data;
|
|
|
|
/// <summary> Used only by Designer </summary>
|
|
public BatchNrFilterUI()
|
|
{
|
|
InitializeComponent();
|
|
Localize();
|
|
}
|
|
|
|
/// <summary> Used to create the control aby a filter </summary>
|
|
public BatchNrFilterUI(BatchNrFilter data)
|
|
{
|
|
this.data = data;
|
|
InitializeComponent();
|
|
Localize();
|
|
}
|
|
|
|
void Localize()
|
|
{
|
|
groupBox1.Text = BatchNrFilter.GetFilterName();
|
|
}
|
|
|
|
public void Data2UI()
|
|
{
|
|
batchNrTextBox.Text = data.BatchNr.ToString();
|
|
}
|
|
|
|
public void UI2Data()
|
|
{
|
|
data.BatchNr = int.Parse(batchNrTextBox.Text);
|
|
}
|
|
}
|
|
}
|