示例#1
0
        private void btnTask_Click(object sender, EventArgs e)
        {
            int      a            = 0;
            TaskForm taskEditForm = new TaskForm(titleID, a);   //todo:

            taskEditForm.MdiParent = this;
            taskEditForm.Show();
            ClosePanelVisible();
        }
示例#2
0
        private void miUpdate_Click(object sender, EventArgs e)
        {
            if (dgvTaskList.SelectedRows.Count > 0)
            {
                object cellValue = dgvTaskList.SelectedRows[0].Cells["ID"].Value;
                int    taskID    = (int)cellValue;

                TaskForm useTask = new TaskForm(taskID);
                useTask.MdiParent = this.MdiParent;
                useTask.Show();
            }
        }