Example #1
0
        private void updateButton_Click(object sender, RoutedEventArgs e)
        {
            specUC_State = State.modify;

            update_buttonVisib();

            ComSpecID.IsEnabled = false;
            SpecializationGrid.setIsEnabled(true, isEnabledExclusions);
        }
Example #2
0
        private void addButton_Click(object sender, RoutedEventArgs e)
        {
            save_buttonVisib();

            SpecializationGrid.setIsEnabled(true, isEnabledExclusions);
            ComSpecID.IsEnabled = false;

            specUC_State = State.createNew;

            ComSpecID.Text = BL_Object.getNextSpecID().ToString();
        }
Example #3
0
        void restoreButtonVisib()
        {
            addButton.Visibility    = Visibility.Visible;
            saveButton.Visibility   = Visibility.Collapsed;
            cancelButton.Visibility = Visibility.Collapsed;
            deleteButton.Visibility = Visibility.Visible;
            updateButton.Visibility = Visibility.Visible;

            SpecializationGrid.setIsEnabled(false, isEnabledExclusions);
            ComSpecID.IsEnabled = true;
        }