Пример #1
0
        private void pnlAddInfo_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;
            InfoAdd dlg = new InfoAdd();

            dlg.IsUpdate = false;
            dlg.ShowDialog();
            this.Cursor = Cursors.Default;
        }
Пример #2
0
        private void dgvAdminEmployeeInfo_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dgvAdminEmployeeInfo.CurrentRow == null)
            {
                return;
            }
            this.Cursor   = Cursors.WaitCursor;
            currrentIndex = this.dgvAdminEmployeeInfo.CurrentRow.Index;
            string  employeeID = this.dgvAdminEmployeeInfo.Rows[currrentIndex].Cells["EmployeeID"].Value.ToString();
            InfoAdd dlg        = new InfoAdd();

            dlg.ProjectCnt       = this.dgvAdminEmployeeInfo.Rows.Count;
            dlg.ProjectRowHandle = currrentIndex;
            dlg.OnSwitchProject += new InfoAdd.SwitchProjectHandler(dlg_OnSwitchProject);

            dlg.EmployeeID = employeeID;
            dlg.IsUpdate   = true;
            dlg.ShowDialog();
            this.Cursor = Cursors.Default;
        }