Beispiel #1
0
 public static void SetSettings(ImportSettings settings)
 {
   switch (settings.DataFormatVersion)
   {
     case DataFormatVersion.Version1:
       Importer.engine = (ImportEngine) new ImportEngineV1();
       break;
     case DataFormatVersion.Version2:
       Importer.engine = (ImportEngine) new ImportEngineV2();
       break;
   }
   Importer.engine.SetSettings(settings);
   Importer.engine.Progress += new EventHandler(Importer.OnProgress);
   Importer.engine.Stopped += new EventHandler(Importer.OnStopped);
   Importer.thread = new Thread(new ThreadStart(Importer.engine.Run));
   Importer.thread.Name = "TAQ Import Engine";
 }
Beispiel #2
0
        public static void SetSettings(ImportSettings settings)
        {
            switch (settings.DataFormatVersion)
            {
            case DataFormatVersion.Version1:
                Importer.engine = (ImportEngine) new ImportEngineV1();
                break;

            case DataFormatVersion.Version2:
                Importer.engine = (ImportEngine) new ImportEngineV2();
                break;
            }
            Importer.engine.SetSettings(settings);
            Importer.engine.Progress += new EventHandler(Importer.OnProgress);
            Importer.engine.Stopped  += new EventHandler(Importer.OnStopped);
            Importer.thread           = new Thread(new ThreadStart(Importer.engine.Run));
            Importer.thread.Name      = "TAQ Import Engine";
        }
Beispiel #3
0
 public static void Dispose()
 {
     Importer.engine = (ImportEngine)null;
     Importer.thread = (Thread)null;
 }
Beispiel #4
0
 public static void Dispose()
 {
   Importer.engine = (ImportEngine) null;
   Importer.thread = (Thread) null;
 }