예제 #1
0
        private void employeeLeaveOffenseToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmLeave3DaysMain objfrmLeave3DaysMain = new frmLeave3DaysMain();

            objfrmLeave3DaysMain.MdiParent = this;
            objfrmLeave3DaysMain.Indicator = "0";
            objfrmLeave3DaysMain.Show();
        }
예제 #2
0
        private void dgLeave_DoubleClick(object sender, EventArgs e)
        {
            CloseAll();
            frmLeave3DaysMain objfrmLeave3DaysMain = new frmLeave3DaysMain();

            objfrmLeave3DaysMain.MDIIpanema       = this;
            objfrmLeave3DaysMain.FormCaller       = this;
            objfrmLeave3DaysMain.LeaveCodeIpanema = dgLeave.SelectedRows[0].Cells[0].Value.ToString();
            objfrmLeave3DaysMain.UserNameCode     = dgLeave.SelectedRows[0].Cells[1].Value.ToString();
            objfrmLeave3DaysMain.EmployeeNameCode = dgLeave.SelectedRows[0].Cells[2].Value.ToString() + ", " + dgLeave.SelectedRows[0].Cells[3].Value.ToString();
            objfrmLeave3DaysMain.MdiParent        = this;
            objfrmLeave3DaysMain.Indicator        = "1";
            objfrmLeave3DaysMain.Show();
        }