Exemplo n.º 1
0
        protected override void OnExit(ExitEventArgs e)
        {
            OS_CD.Properties.Settings.Default.SelectedFile = 0;
            OS_CD.Properties.Settings.Default.Save();
            base.OnExit(e);

            SerializeFileSystem.SerializeObject(RootPath + "data.dat", FileSystem.Instance);
        }
Exemplo n.º 2
0
        protected override void OnStartup(StartupEventArgs e)
        {
            SerializeFileSystem.DeserializeObject(RootPath + "data.dat", out FileSystem.instance);
            App.Current.SessionEnding += Current_SessionEnding;
            MainWindow window = new MainWindow();

            window.Show();
            base.OnStartup(e);
        }