Example #1
0
 private void cmdAddProv_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var dsp = new WndSP(this) { Owner = this };
         var showDialog = dsp.ShowDialog();
         if (showDialog != null && showDialog.Value)
         {
             fillSearchProviders(false);
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Example #2
0
 private void editSearchProvider(PNSearchProvider sp)
 {
     try
     {
         if (sp == null) return;
         var dsp = new WndSP(this, sp) { Owner = this };
         var showDialog = dsp.ShowDialog();
         if (showDialog != null && showDialog.Value)
         {
             fillSearchProviders(false);
         }
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }