internal void RemoveMachine(IStateMachineController stateMachine) { var tab = MachineTabs.Items.OfType <TabItem>().FirstOrDefault(t => t.Content == stateMachine); if (tab != null) { MachineTabs.Items.Remove(tab); } }
public void RegisterStateMachine(IStateMachineController <TState, TContext> stateMachine) { _stateMachine = stateMachine; }
public static void RemoveStateMachine(IStateMachineController stateMachine) { Instance.RemoveMachine(stateMachine); }
private void button1_Click(object sender, EventArgs e) { LatestMachine = StateMachineService.AddStateMachine(); }
internal void RemoveMachine(IStateMachineController stateMachine) { stateMachineTabs1.RemoveMachine(stateMachine); }