Esempio n. 1
0
 private void tbtnEdit_Click(object sender, EventArgs e)
 {
     if (dgLeaveList.Rows.Count > 0)
     {
         frmLeave3DaysEdit objfrmLeave3DayEdit = new frmLeave3DaysEdit();
         objfrmLeave3DayEdit.FormLeave3DayMain = this;
         objfrmLeave3DayEdit.FormCaller        = this;
         objfrmLeave3DayEdit.LeaveCode         = dgLeaveList.SelectedRows[0].Cells[0].Value.ToString();
         objfrmLeave3DayEdit.Username          = dgLeaveList.SelectedRows[0].Cells[1].Value.ToString();
         objfrmLeave3DayEdit.EmployeeName      = dgLeaveList.SelectedRows[0].Cells[2].Value.ToString();
         objfrmLeave3DayEdit.ShowDialog();
     }
 }
Esempio n. 2
0
        private void frmLeave3DaysMain_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;
            LoadEmployeeLeaveoffense();

            if (_strIndicator == "1")
            {
                frmLeave3DaysEdit objfrmLeave3DaysEdit = new frmLeave3DaysEdit();
                objfrmLeave3DaysEdit.MDIIpanema        = _mdiIpanema;
                objfrmLeave3DaysEdit.FormCaller        = _mdiIpanema;
                objfrmLeave3DaysEdit.FormLeave3DayMain = this;
                objfrmLeave3DaysEdit.LeaveCode         = _strLeaveCode;
                objfrmLeave3DaysEdit.Username          = _strusernamecode;
                objfrmLeave3DaysEdit.EmployeeName      = _stremployeename;
                objfrmLeave3DaysEdit.ShowDialog();
            }
        }