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; } }
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); }
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; } }
private void btnDeptList_Click(object sender, EventArgs e) { MTN_DEPT_LIST frm = new MTN_DEPT_LIST(); frm.ShowDialog(); }