DataEntry.Standard supports IHasWMStatesForm interface. Fixed start method should work without register readers (test!).

This commit is contained in:
Milan Hanajik
2015-04-14 07:14:45 +02:00
parent 1698a923bf
commit 274ab79cb7
10 changed files with 609 additions and 65 deletions
@@ -95,13 +95,13 @@ namespace TBF.BenchControl.DataEntry.WMStates
delegate void EntryFormDlgt(EntryForm myRef);
///
void OpenBeginningDlg(EntryForm myRef)
void OpenWMSNsAndStatesDlg(EntryForm myRef)
{
myRef.modelessDlg = new WMSNsAndStatesForm(Program.WMsCount);
modelessDlg.Show();
}
///
void OpenEndDlg(EntryForm myRef)
///
void OpenWMStatesDlg(EntryForm myRef)
{
myRef.modelessDlg = new WMStatesForm(Program.WMsCount);
modelessDlg.Show();
@@ -114,10 +114,10 @@ namespace TBF.BenchControl.DataEntry.WMStates
switch (currentOp)
{
case CurrentOp.EnterWMSNsAndStates:
Program.MainWnd.Invoke(new EntryFormDlgt(OpenBeginningDlg), this);
Program.MainWnd.Invoke(new EntryFormDlgt(OpenWMSNsAndStatesDlg), this);
break;
case CurrentOp.EnterWMStates:
Program.MainWnd.Invoke(new EntryFormDlgt(OpenEndDlg), this);
Program.MainWnd.Invoke(new EntryFormDlgt(OpenWMStatesDlg), this);
break;
}
}