Beispiel #1
0
        static void Main(string[] args)
        {
            string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();
            Console.WriteLine("BV Migrate | " + version);
            Console.WriteLine();

            if (args.Length < 2)
            {
                ShowHelp();
                return;
            }

            Console.WriteLine("Parsing Arguments");

            MigrationSettings data = new MigrationSettings();

            foreach (string arg in args)
            {
                ParseArg(data, arg);
            }

            data.PrepArgs();

            MigrationService migrator = new MigrationService(data);
            migrator.ProgressReport += new MigrationService.ProgressReportDelegate(builder_ProgressReport);
            migrator.StartMigration();            
        }
        static void Main(string[] args)
        {
            string version = Assembly.GetExecutingAssembly().GetName().Version.ToString();

            Console.WriteLine("BV Migrate | " + version);
            Console.WriteLine();

            if (args.Length < 2)
            {
                ShowHelp();
                return;
            }

            Console.WriteLine("Parsing Arguments");

            MigrationSettings data = new MigrationSettings();

            foreach (string arg in args)
            {
                ParseArg(data, arg);
            }

            data.PrepArgs();

            MigrationService migrator = new MigrationService(data);

            migrator.ProgressReport += new MigrationService.ProgressReportDelegate(builder_ProgressReport);
            migrator.StartMigration();
        }
Beispiel #3
0
 private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
 {
     MigrationSettings settings = (MigrationSettings)e.Argument;
     MigrationService svc = new MigrationService(settings);
     svc.ProgressReport += new MigrationService.ProgressReportDelegate(svc_ProgressReport);
     svc.StartMigration();            
 }
Beispiel #4
0
        private void backgroundWorker1_DoWork(object sender, DoWorkEventArgs e)
        {
            MigrationSettings settings = (MigrationSettings)e.Argument;
            MigrationService  svc      = new MigrationService(settings);

            svc.ProgressReport += new MigrationService.ProgressReportDelegate(svc_ProgressReport);
            svc.StartMigration();
        }