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

            _cc.AddWorkSection(Convert.ToInt32(WorkUnitsListBox.SelectedValue), NewSectionNameTextBox.Text);

            NewSectionNameTextBox.Text = string.Empty;

            AddNewSectionGrid.Visibility = Visibility.Hidden;

            AdministrationClass.AddNewAction(25);
        }