예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            MinWidth  = 800;
            MinHeight = 450;

            InitHandlers();
            stateMachine = new StateMachine();
            InitStrip();
            GR.Loaded += (s, e) => GR.SetControls(stateMachine.Rules);
            App.Current.DispatcherUnhandledException += Current_DispatcherUnhandledException;

            if (!string.IsNullOrEmpty(Tools.StartupHelper))
            {
                stateMachine.Load(Tools.StartupHelper);
            }
        }
예제 #2
0
 private void BtnLoad_Click(object sender, RoutedEventArgs e)
 {
     stateMachine.Load();
     GR.SetControls(stateMachine.Rules);
 }