Exemplo 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();
        }
Exemplo 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();
 }