Пример #1
0
 private void cmiUpdateRequest_Click(object sender, EventArgs e)
 {
     if (dgvRequests.SelectedRows.Count > 0)
     {
         int             projectId = (int)dgvRequests.Rows[0].Cells["ProjectID"].Value;
         RequestEditForm editForm  = new RequestEditForm(projectId);
         editForm.MdiParent = this.MdiParent;
         editForm.Show();
     }
 }
Пример #2
0
        private void miAddRequest_Click(object sender, EventArgs e)
        {
            if (dgvProject.SelectedRows.Count > 0)
            {
                int projectId = (int)dgvProject.SelectedRows[0].Cells["ID"].Value;

                RequestEditForm rEditForm = new RequestEditForm(projectId);
                rEditForm.MdiParent = this.MdiParent;
                rEditForm.Show();
            }
        }