Example #1
0
        private void ApplyModeChanges()
        {
#if DEBUG
            DebugMessageBox("Debug mode. Exit without reboot.");
#else
            WebPlaceSettings.Save();
            System.Diagnostics.Process.Start("ShutDown", "/r /t 0 /f");
#endif
            this.Close();
        }
Example #2
0
 private void Form1_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (canClose)
     {
         WebPlaceSettings.Save();
         e.Cancel = false;
         Cef.Shutdown();
         return;
     }
     e.Cancel = true;
 }