Пример #1
0
        internal void RemoveMachine(IStateMachineController stateMachine)
        {
            var tab = MachineTabs.Items.OfType <TabItem>().FirstOrDefault(t => t.Content == stateMachine);

            if (tab != null)
            {
                MachineTabs.Items.Remove(tab);
            }
        }
Пример #2
0
 public void RegisterStateMachine(IStateMachineController <TState, TContext> stateMachine)
 {
     _stateMachine = stateMachine;
 }
 public static void RemoveStateMachine(IStateMachineController stateMachine)
 {
     Instance.RemoveMachine(stateMachine);
 }
Пример #4
0
 private void button1_Click(object sender, EventArgs e)
 {
     LatestMachine = StateMachineService.AddStateMachine();
 }
 internal void RemoveMachine(IStateMachineController stateMachine)
 {
     stateMachineTabs1.RemoveMachine(stateMachine);
 }