diff --git a/TBF/Rig/StateMachine.cs b/TBF/Rig/StateMachine.cs index cd0e620fa..2bfeb2285 100644 --- a/TBF/Rig/StateMachine.cs +++ b/TBF/Rig/StateMachine.cs @@ -192,22 +192,21 @@ namespace TBF.Rig } /// - /// Start the state machine in the state 'label' in a desired mode of operation. - /// This method is called in the UI thread and creates a new state machine thread. - /// This method call should be embedded in: try { StateMachine.Start(...); } catch { } - /// to handle configuration problems. Calls CreateDevices(mode) and CreateStates(). + /// Load all components (entities) from the database. + /// Then create the components (derived from IComponent). + /// Do various things, fetch certain groups fo components. + /// Finally initialize COntrolBoard component. /// - /// Mode of operation - /// A copy of bench data used by the state machine - /// Identifies the initial state + /// Configuration database session + /// Control board Visual Basic component (ELDE) #if DN100 - public static void InitializeBoardEtc(ControlCom2VB.ControlCom2panel ctrlBrdComponent) + public static void InitializeBoardEtc(ISession session, ControlCom2VB.ControlCom2panel ctrlBrdComponent) #elif FUZHOU_150 || MUNICH - public static void InitializeBoardEtc(ControlComponent3Munich.UserControl1 ctrlBrdComponent) + public static void InitializeBoardEtc(ISession session, ControlComponent3Munich.UserControl1 ctrlBrdComponent) #elif FUZHOU_300 - public static void InitializeBoardEtc(ControlComponent3F300.UserControl1 ctrlBrdComponent) + public static void InitializeBoardEtc(ISession session, ControlComponent3F300.UserControl1 ctrlBrdComponent) #elif BERLIN || GELSENWASSER || GENESIS || IZRAEL_200 || PETERSBURG_200 || PUCHONG_200 || SLM_150 - public static void InitializeBoardEtc(ControlComponent_Izrael2014.UserControl1 ctrlBrdComponent) + public static void InitializeBoardEtc(ISession session, ControlComponent_Izrael2014.UserControl1 ctrlBrdComponent) #else /// all newer benches public static void InitializeBoardEtc(ISession session, ControlComponent_Torino2015.UserControl1 ctrlBrdComponent) #endif