private void butAdd_Click(object sender, System.EventArgs e) { CfgBackupTaskDlg cfgBackupTaskDlg = new CfgBackupTaskDlg(-1L); if (cfgBackupTaskDlg.ShowDialog(this) == DialogResult.OK) { this.pageInit(); } }
private void butModify_Click(object sender, System.EventArgs e) { string value = this.dataGridViewCfgTasks.CurrentRow.Cells[4].Value.ToString(); long num = (long)System.Convert.ToInt32(value); CfgBackupTaskDlg cfgBackupTaskDlg = new CfgBackupTaskDlg(num); if (cfgBackupTaskDlg.ShowDialog(this) == DialogResult.OK) { this.pageInit(); } }
private void dataGridViewCfgTasks_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { int rowIndex = e.RowIndex; if (rowIndex < 0) { return; } string value = this.dataGridViewCfgTasks.Rows[rowIndex].Cells[4].Value.ToString(); long num = (long)System.Convert.ToInt32(value); CfgBackupTaskDlg cfgBackupTaskDlg = new CfgBackupTaskDlg(num); if (cfgBackupTaskDlg.ShowDialog(this) == DialogResult.OK) { this.pageInit(); } }