private void cboDuty_SelectedIndexChanged(object sender, EventArgs e) { if (cboDuty.SelectedValue == null) { return; } if (cboDuty.SelectedValue.ToString().CompareTo("New...") != 0) { return; } MTN_DUTY_LIST frm = new MTN_DUTY_LIST(); frm.ShowDialog(); FillControl.FillAdminDutyList(cboDuty, false, true); }
private void MTN_DUTY_LIST_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { frmMain frmmain = (frmMain)this.ParentForm; if (frmmain.CheckChildFrmExist("MTN_DUTY_LIST") == true) { return; } MTN_DUTY_LIST newFrm = new MTN_DUTY_LIST(); if (newFrm != null && !frmmain.ShowMDIChild(newFrm, newFrm)) { newFrm.Dispose(); newFrm = null; } }
private void btnDutyList_Click(object sender, EventArgs e) { MTN_DUTY_LIST frm = new MTN_DUTY_LIST(); frm.ShowDialog(); }