private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e) { var add = new AddProgramSource(); if(add.ShowDialog() ?? false) { this.ReIndexing(); } }
private void btnEditProgramSource_OnClick(object sender, RoutedEventArgs e) { ProgramSource selectedProgramSource = programSourceView.SelectedItem as ProgramSource; if (selectedProgramSource != null) { var add = new AddProgramSource(selectedProgramSource); if (add.ShowDialog() ?? false) { this.ReIndexing(); } } else { string msg = context.API.GetTranslation("Bloop_plugin_program_pls_select_program_source"); MessageBox.Show(msg); } }