Exemple #1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            EngineeringOrderDirectiveTaskForm form = new EngineeringOrderDirectiveTaskForm(directive);

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateInformation();
            }
        }
Exemple #2
0
        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();
            }
        }