Esempio n. 1
0
        private void MTN_DEPT_LIST_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            frmMain frmmain = (frmMain)this.ParentForm;

            if (frmmain.CheckChildFrmExist("MTN_DEPT_LIST") == true)
            {
                return;
            }
            MTN_DEPT_LIST newFrm = new MTN_DEPT_LIST();

            if (newFrm != null && !frmmain.ShowMDIChild(newFrm, newFrm))
            {
                newFrm.Dispose();
                newFrm = null;
            }
        }
Esempio n. 2
0
        private void cboDept_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cboDept.SelectedValue == null)
            {
                return;
            }
            if (cboDept.SelectedValue.ToString().CompareTo("New...") != 0)
            {
                return;
            }

            MTN_DEPT_LIST frm = new MTN_DEPT_LIST();

            frm.ShowDialog();
            FillControl.FillAdminDeptList(cboDept, false, true);
        }
Esempio n. 3
0
 private void btnUsingDepart_Click(object sender, EventArgs e)
 {
     try
     {
         this.Cursor = Cursors.WaitCursor;
         MTN_DEPT_LIST frm = new MTN_DEPT_LIST();
         frm.SelectVisible = true;
         if (frm.ShowDialog() == DialogResult.OK)
         {
             txtUsingDepart.Text = Util.retValue1;
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, clsTranslate.TranslateString("Information"), MessageBoxButtons.OK, MessageBoxIcon.Information);
         return;
     }
     finally
     {
         this.Cursor = Cursors.Default;
     }
 }
Esempio n. 4
0
        private void btnDeptList_Click(object sender, EventArgs e)
        {
            MTN_DEPT_LIST frm = new MTN_DEPT_LIST();

            frm.ShowDialog();
        }