CreateBackup() публичный статический Метод

public static CreateBackup ( ) : void
Результат void
Пример #1
0
 private void MainForm_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (SettingsManager.getSettingBool("ShutdownAutohotkeyOnExit"))
     {
         AutoHotkeyManager.ShutdownAutohotkey();
     }
     // create backup of settings on successful shutdown
     if (SettingsManager.getSettingBool("AutomaticSettingsBackup"))
     {
         SettingsManager.CreateBackup();
     }
     if (fileWriter != null)
     {
         fileWriter.Close();
     }
     ProcessManager.Stop();
 }
Пример #2
0
 private void createBackupButton_Click(object sender, EventArgs e)
 {
     SettingsManager.CreateBackup();
 }