private void عملیاتپایگاهدادهToolStripMenuItem_Click(object sender, EventArgs e) { isForClosing = false; BackupDatabase frm = new BackupDatabase(); frm.ShowDialog(this); }
private void backupDbButton_Click(object sender, EventArgs e) { using (BackupDatabase backup = new BackupDatabase()) { backup.FormClosing += backup_FormClosing; backup.ShowDialog(); } }