37 lines
900 B
C#
37 lines
900 B
C#
|
|
using System;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
|
|||
|
|
namespace TBF.BenchControl.DataEntry.Munich
|
|||
|
|
{
|
|||
|
|
public partial class CycleBeginningForm : Form, GenericDevices.IHasCompleted
|
|||
|
|
{
|
|||
|
|
// To be retrieved after the form closes
|
|||
|
|
public string MainSNText;
|
|||
|
|
public string AuxSNText;
|
|||
|
|
public string MainStateText;
|
|||
|
|
public string AuxStateText;
|
|||
|
|
|
|||
|
|
// Set to 'true' when the form closes
|
|||
|
|
public bool Completed { get { return completed; } }
|
|||
|
|
bool completed;
|
|||
|
|
|
|||
|
|
public CycleBeginningForm()
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
completed = false;
|
|||
|
|
// TODO: localize strings
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private void okButton_Click(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
MainSNText = mainSnTextBox.Text;
|
|||
|
|
AuxSNText = auxSnTextBox.Text;
|
|||
|
|
MainStateText = mainStateTextBox.Text;
|
|||
|
|
AuxStateText = auxStateTextBox.Text;
|
|||
|
|
|
|||
|
|
completed = true;
|
|||
|
|
Close();
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|