Example #1
0
        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);
        }
Example #2
0
        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;
            }
        }
Example #3
0
        private void btnDutyList_Click(object sender, EventArgs e)
        {
            MTN_DUTY_LIST frm = new MTN_DUTY_LIST();

            frm.ShowDialog();
        }