private void btnnew_staff_Click(object sender, EventArgs e) { status = "new"; sms_create_staff staff = new sms_create_staff(status, staffid); staff.ShowDialog(); }
private void editRecordToolStripMenuItem_Click(object sender, EventArgs e) { status = "old"; sms_create_staff staff = new sms_create_staff(status, staffid); staff.ShowDialog(); }