Example #1
0
 private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e)
 {
     var add = new AddProgramSource();
     if(add.ShowDialog() ?? false)
     {
         this.ReIndexing();
     }
 }
Example #2
0
 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);
     }
 }