Ejemplo n.º 1
0
 private void miEdit_Click(object sender, EventArgs e)
 {
     if (dgvTask.SelectedRows.Count > 0)
     {
         TaskEditForm taskEditForm = new TaskEditForm(_taskID, _projectId);
         taskEditForm.MdiParent = this.MdiParent;
         taskEditForm.Show();
     }
 }
Ejemplo n.º 2
0
        private void miAddTask_Click(object sender, EventArgs e)
        {
            if (dgvProject.SelectedRows.Count > 0)
            {
                int projectId = (int)dgvProject.SelectedRows[0].Cells["ID"].Value;

                TaskEditForm tEditForm = new TaskEditForm(projectId);
                tEditForm.MdiParent = this.MdiParent;
                tEditForm.Show();
            }
        }