Ejemplo n.º 1
0
 public MainWindow()
 {
     InitializeComponent();
     outputFile = null;
     sty = null;
     dataLayer = null;
     runner = null;
 }
Ejemplo n.º 2
0
 static void Main(string[] args)
 {
     Options options = new Options();
     if (!CommandLineParser.Default.ParseArguments(args, options))
     {
         return;
     }
     StreamWriter w = new StreamWriter(options.outputFile);
     DataLayer d;
     try
     {
         d = new DataLayer(options.connectionString);
     }
     catch (Exception e)
     {
         Console.Error.WriteLine(e.Message);
         return;
     }
     ExtractorLib.ExtractorLib sty = new ExtractorLib.ExtractorLib(options.tables, w, d, options.notificationPercent);
     sty.MadeProgress += new MadeProgressEventHandler(sty_MadeProgress);
     sty.ExtractionFinished += new ExtractionFinishedEventHandler(sty_ExtractionFinished);
     sty.Convert();
 }
Ejemplo n.º 3
0
 private void btnLoadTables_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         dataLayer = new DataLayer(txtConnection.Text);
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show(ex.Message);
         return;
     }
     tables = dataLayer.TableList;
     Array.Sort<string>(tables);
     lstTables.ItemsSource = tables;
     lstTables.SelectAll();
     btnExtract.IsEnabled = txtPath.Text != "";
 }