Exemplo n.º 1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            frmStaff staff = new frmStaff();

            staff.staffView = this;
            staff.ShowDialog();
        }
Exemplo n.º 2
0
        private void btnView_Click(object sender, EventArgs e)
        {
            if (index < 0)
            {
                return;
            }
            frmStaff staff = new frmStaff();

            staff.staffView = this;
            staff.edit      = true;
            staff.code      = code;
            staff.ShowDialog();
        }