private void AddInKindService(object sender, RoutedEventArgs e) { if (Application.Current.Windows.Count <= 2) { AddInKindService iks = new AddInKindService(true, EventID); iks.ShowDialog(); iks.AMPM_End.SelectedIndex = 0; iks.AMPM_Start.SelectedIndex = 0; } }