private void ApplicationPanel_Loaded(object sender, RoutedEventArgs e) { StartPauseComboBox.SelectionChanged += ComboBox_SelectionChanged; StopComboBox.SelectionChanged += ComboBox_SelectionChanged; }