Ejemplo n.º 1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            CfgBackupTaskDlg cfgBackupTaskDlg = new CfgBackupTaskDlg(-1L);

            if (cfgBackupTaskDlg.ShowDialog(this) == DialogResult.OK)
            {
                this.pageInit();
            }
        }
Ejemplo n.º 2
0
        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();
            }
        }
Ejemplo n.º 3
0
        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();
            }
        }