Esempio n. 1
0
        private void backupToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmBackup objbkp = new FrmBackup();

            objbkp.isPormteMode = false;
            objbkp.ShowDialog();
        }
Esempio n. 2
0
 private void MDIMain_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (AppInit.AppInfo.AskBackupWhenCloseSoftware)
     {
         FrmBackup objbkp = new FrmBackup();
         objbkp.isPormteMode = true;
         if (objbkp.ShowDialog() == DialogResult.OK)
         {
             e.Cancel = false;
         }
         else
         {
             e.Cancel = true;
         }
     }
 }