Exemplo n.º 1
0
        private void AddNewOperationButton_Click(object sender, RoutedEventArgs e)
        {
            if (NewOperationNameTextBox.Text.Trim() == string.Empty)
            {
                return;
            }

            _cc.AddWorkOperation(Convert.ToInt32(WorkSubsectionsListBox.SelectedValue),
                                 Convert.ToInt32(SubsectionsGroupsProp3ComboBox.SelectedValue), NewOperationNameTextBox.Text);

            NewOperationNameTextBox.Text = string.Empty;

            AddNewOperationGrid.Visibility = Visibility.Hidden;

            AdministrationClass.AddNewAction(27);
        }