Esempio n. 1
0
        public ScenarioExplorer()
        {
            prefManager = new PreferencesManager();
            prefs       = prefManager.LoadAppPreferences();
            DataCtx     = new ScenarioExplorerViewModel();
            CreateMenu(prefs.RecentFiles, DataCtx);
            this.DataContext = DataCtx;

            this.InitializeComponent();

            if (App.StartupArgs.Length > 0)
            {
                LoadScenario(App.StartupArgs[0]);
            }
        }