Esempio n. 1
0
        protected override void OnClosing(CancelEventArgs e)
        {
            e.Cancel = MessageBoxHelper.AskQuestion(Properties.Resources.TXT_CONFIRM_EXIT) == false;

            if (!e.Cancel && MessageBoxHelper.AskQuestion(Properties.Resources.QTN_WOULD_YOU_LIKE_BACKUP_DATABASE))
            {
                BackupRestoreManager.BackUp();
            }
        }
Esempio n. 2
0
 private void OnBackupDatabase(object param)
 {
     BackupRestoreManager.BackUp();
 }