Ejemplo n.º 1
0
        private void buttonAdd_Click(object sender, EventArgs e)
        {
            EngineeringOrderDirectiveTaskForm form = new EngineeringOrderDirectiveTaskForm(directive);

            if (form.ShowDialog() == DialogResult.OK)
            {
                UpdateInformation();
            }
        }
Ejemplo n.º 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();
            }
        }