Ejemplo n.º 1
0
 private void cmdOK_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var paths = new string[2];
         paths[0] = txtDataDir.Text.Trim();
         paths[1] = "";
         if (chkUseDataDir.IsChecked != null && chkUseDataDir.IsChecked.Value)
         {
             paths[1] = txtDBDir.Text.Trim();
         }
         var ds = new WndSync(paths)
         {
             Owner = this
         };
         DialogResult = ds.ShowDialog();
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }
Ejemplo n.º 2
0
 private void cmdOK_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         var paths = new string[2];
         paths[0] = txtDataDir.Text.Trim();
         paths[1] = "";
         if (chkUseDataDir.IsChecked != null && chkUseDataDir.IsChecked.Value)
         {
             paths[1] = txtDBDir.Text.Trim();
         }
         var ds = new WndSync(paths) {Owner = this};
         DialogResult = ds.ShowDialog();
     }
     catch (Exception ex)
     {
         PNStatic.LogException(ex);
     }
 }