示例#1
0
        private void btNewEmpl_Click(object sender, EventArgs e)
        {
            frmAddUpdateEmployee frmEmpl = new frmAddUpdateEmployee(-1);

            try { frmEmpl.ShowDialog(this); }
            catch { }
        }
示例#2
0
        private void updateToolStripMenuItem_Click(object sender, EventArgs e)
        {
            int id = (int)dgvEmployee.Rows[_rowIndex].Cells[dgvEmployee.Columns["PayrollNumber"].Index].Value;
            frmAddUpdateEmployee objForm = new frmAddUpdateEmployee(id);

            objForm.ShowDialog(this);
        }
示例#3
0
 private void btNewEmpl_Click(object sender, EventArgs e)
 {
     frmAddUpdateEmployee frmEmpl = new frmAddUpdateEmployee(-1);
     frmEmpl.ShowDialog(this);
 }
示例#4
0
 private void updateToolStripMenuItem_Click(object sender, EventArgs e)
 {
     int id = (int)dgvEmployee.Rows[_rowIndex].Cells[dgvEmployee.Columns["PayrollNumber"].Index].Value;
     frmAddUpdateEmployee objForm = new frmAddUpdateEmployee(id);
     objForm.ShowDialog(this);
 }