public static void SetEmployeeName(TextBox box) { MTN_EMPLOYEE_LIST frm = new MTN_EMPLOYEE_LIST(); frm.SelectVisible = true; if (frm.ShowDialog() == DialogResult.OK) { box.Text = Util.retValue2; } }
private void MTN_EMPLOYEE_LIST_Click(object sender, EventArgs e) { frmMain frmmain = (frmMain)this.ParentForm; if (frmmain.CheckChildFrmExist("MTN_EMPLOYEE_LIST") == true) { return; } MTN_EMPLOYEE_LIST newFrm = new MTN_EMPLOYEE_LIST(); if (newFrm != null && !frmmain.ShowMDIChild(newFrm, newFrm)) { newFrm.Dispose(); newFrm = null; } }
private void cboSalesMan_SelectedIndexChanged(object sender, EventArgs e) { if (cboSalesMan.SelectedValue == null) { return; } if (cboSalesMan.SelectedValue.ToString().CompareTo("New...") != 0) { return; } MTN_EMPLOYEE_LIST frm = new MTN_EMPLOYEE_LIST(); frm.ShowDialog(); FillControl.FillEmployeeList(cboSalesMan, false, true); }
private void btnEmployeeList_Click(object sender, EventArgs e) { MTN_EMPLOYEE_LIST frm = new MTN_EMPLOYEE_LIST(); frm.ShowDialog(); }