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