Beispiel #1
0
        private void butAdd_Click(object sender, System.EventArgs e)
        {
            GpPowerTaskDlg gpPowerTaskDlg = new GpPowerTaskDlg(-1L);

            if (gpPowerTaskDlg.ShowDialog(this) == DialogResult.OK)
            {
                this.pageInit();
            }
        }
Beispiel #2
0
        private void butModify_Click(object sender, System.EventArgs e)
        {
            string         value          = this.dataGridViewCtrlTasks.CurrentRow.Cells[4].Value.ToString();
            long           num            = (long)System.Convert.ToInt32(value);
            GpPowerTaskDlg gpPowerTaskDlg = new GpPowerTaskDlg(num);

            if (gpPowerTaskDlg.ShowDialog(this) == DialogResult.OK)
            {
                this.pageInit();
            }
        }
Beispiel #3
0
        private void dataGridViewTasks_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            int rowIndex = e.RowIndex;

            if (rowIndex < 0)
            {
                return;
            }
            string         value          = this.dataGridViewCtrlTasks.Rows[rowIndex].Cells[4].Value.ToString();
            long           num            = (long)System.Convert.ToInt32(value);
            GpPowerTaskDlg gpPowerTaskDlg = new GpPowerTaskDlg(num);

            if (gpPowerTaskDlg.ShowDialog(this) == DialogResult.OK)
            {
                this.pageInit();
            }
        }