private void tmiEmployee_Click(object sender, EventArgs e) { this.Cursor = Cursors.WaitCursor; frmEmployeeList pForm = new frmEmployeeList(); pForm.MdiParent = this; pForm.FormMDICaller = this; pForm.Show(); this.Cursor = Cursors.Default; }
private void dgNotify2_DoubleClick(object sender, EventArgs e) { if (dgNotify2.RowCount > 0) { this.CloseAll(); frmEmployeeList pForm = new frmEmployeeList(); pForm.MdiParent = this; pForm.FormMDICaller = this; pForm.Username = dgNotify2.SelectedRows[0].Cells[0].Value.ToString(); pForm.Show(); this.Cursor = Cursors.Default; } }