コード例 #1
0
 private void dgvMgrs_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (ManagerId == null)
     {
         MessageBox.Show("You have not selected a manager to open.", "Error", MessageBoxButtons.OK);
         return;
     }
     else
     {
         Guid       _managerId  = new Guid(ManagerId.ToString());
         frmManager _frmManager = new frmManager(mf_parent, _managerId);
         _frmManager.FormClosed += mf_parent.ManagerFormClosed;
     }
 }
コード例 #2
0
 private void btnOpenMgr_Click(object sender, EventArgs e)
 {
     if (ManagerId == null)
     {
         MessageBox.Show("You have not selected a manager to open.", "Error", MessageBoxButtons.OK);
         return;
     }
     else
     {
         Guid       mgrId       = new Guid(ManagerId.ToString());
         frmManager _frmManager = new frmManager(mf_parent);
         _frmManager.FormClosed += mf_parent.ManagerFormClosed;
     }
 }
コード例 #3
0
 private void OpenManager()
 {
     int index = dgvManagers.CurrentRow.Index;
     Guid _managerId = new Guid(dgvManagers.Rows[index].Cells[0].Value.ToString());
     frmManager _frmManager = new frmManager(frmMain_Parent, _managerId);
 }