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); } }
private void BtnLoad_Click(object sender, RoutedEventArgs e) { stateMachine.Load(); GR.SetControls(stateMachine.Rules); }