private void buttonAdd_Click(object sender, EventArgs e) { EngineeringOrderDirectiveTaskForm form = new EngineeringOrderDirectiveTaskForm(directive); if (form.ShowDialog() == DialogResult.OK) { UpdateInformation(); } }
private void buttonEdit_Click(object sender, EventArgs e) { ScreenMode mode = ScreenMode.View; if (permissionForUpdate) { mode = ScreenMode.Edit; } EngineeringOrderDirectiveTaskForm form = new EngineeringOrderDirectiveTaskForm(SelectedItem, mode); if (form.ShowDialog() == DialogResult.OK) { UpdateInformation(); } }