DataEntry.Standard supports IHasWMStatesForm interface. Fixed start method should work without register readers (test!).
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user