private void backupToolStripMenuItem_Click(object sender, EventArgs e) { FrmBackup objbkp = new FrmBackup(); objbkp.isPormteMode = false; objbkp.ShowDialog(); }
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; } } }