Beispiel #1
0
 private void departmentMasterToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         //frmDeptList objFrmList = new frmDeptList();
         frmDeptList objFrmList = new frmDeptList(CurrentCompany, CurrentUser);
         objFrmList.MdiParent = this;
         objFrmList.Show();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, Application.ProductName, MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
     }
 }
Beispiel #2
0
        private void btnDeptList_Click(object sender, EventArgs e)
        {
            frmDeptList frmList = new frmDeptList();

            frmList.IsList = true;
            frmList.ShowDialog();

            if (!frmList.IsListCancel)
            {
                objEmp.DeptID   = frmList.DBID;
                objEmp.DeptName = frmList.DeptName;

                lblDept.Text = objEmp.DeptName;
                SendKeys.Send("{TAB}");
            }
            frmList.Dispose();
        }