private void btnNew_Click(object sender, EventArgs e) { frmStaff staff = new frmStaff(); staff.staffView = this; staff.ShowDialog(); }
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(); }