Beispiel #1
0
        private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e)
        {
            AddProgramSource add = new AddProgramSource(context, _settings);

            add.ShowDialog();
            ReIndexing();
        }
Beispiel #2
0
 private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e)
 {
     var add = new AddProgramSource(_settings);
     if(add.ShowDialog() ?? false)
     {
         ReIndexing();
     }
 }
Beispiel #3
0
        private void btnAddProgramSource_OnClick(object sender, RoutedEventArgs e)
        {
            var add = new AddProgramSource(_settings);

            if (add.ShowDialog() ?? false)
            {
                ReIndexing();
            }
        }
Beispiel #4
0
 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);
     }
 }
Beispiel #5
0
 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);
     }
 }