Beispiel #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            //call form staff deduction
            frmStaffDeduction frm = new frmStaffDeduction();

            frm.ShowDialog();
            this.LoadData();
        }
Beispiel #2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            //to load form staff deduction and update
            int Index = dgvList.CurrentRow.Index;

            if (Index >= 0)
            {
                int Id = int.Parse(dgvList.Rows[Index].Cells[1].Value.ToString());
                frmStaffDeduction frm = new frmStaffDeduction();
                frm.editId   = Id;
                frm.editFlag = true;
                frm.ShowDialog();
                this.LoadData();
            }
        }