Example #1
0
        private void OnStartup(object sender, StartupEventArgs e)
        {
            var stateProvider = new StateProvider();

            _state = stateProvider.Load();
            _model = new MainModel(_state.Clone());
            var main = new MainWindow
            {
                DataContext = _model
            };

            main.Show();
        }