Esempio n. 1
0
        private void btnOverNew_Click(object sender, RoutedEventArgs e)
        {
            int    preNewCount = AandCList.Count;
            NewAAC newWindow   = new NewAAC(AandCList);

            newWindow.ShowDialog();
            int postNewCount = AandCList.Count;

            //If a new overlay type was added then make it the selected one
            if (preNewCount != postNewCount)
            {
                UpdateOverlayCombobox();
                OverlayComboBox.SelectedIndex = AandCList.Count - 1;
            }
            //Else dont do anything
            ResetComboBoxes();
        }
Esempio n. 2
0
 private void btnOverNew_Click(object sender, RoutedEventArgs e)
 {
     int preNewCount = AandCList.Count;
     NewAAC newWindow = new NewAAC(AandCList);
     newWindow.ShowDialog();
     int postNewCount = AandCList.Count;
     //If a new overlay type was added then make it the selected one
     if (preNewCount != postNewCount)
     {
         UpdateOverlayCombobox();
         OverlayComboBox.SelectedIndex = AandCList.Count - 1;
     }
     //Else dont do anything
     ResetComboBoxes();
 }