static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //UI form we are going to show var form = new FormSiteExportImport(); //See if we have command line arguments to run var commandLine = new CommandLineParser(); if(CommandLineParser.HasUseableCommandLine(commandLine)) { form.SetStartupCommandLine(commandLine); } Application.Run(form); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //UI form we are going to show var form = new FormSiteExportImport(); //See if we have command line arguments to run var commandLine = new CommandLineParser(); if (CommandLineParser.HasUseableCommandLine(commandLine)) { form.SetStartupCommandLine(commandLine); } Application.Run(form); }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); //UI form we are going to show var form = new FormSiteExportImport(); //Example command line: //-command emailSiteDigests -base "base_secrets.xml" -targetSite "target_CloudTeam.xml" -exitWhenDone false //See if we have command line arguments to run var commandLine = new CommandLineParser(); if (CommandLineParser.HasUseableCommandLine(commandLine)) { //form.SetStartupCommandLine(commandLine); AppSettings.SetCommandLine(commandLine); } Application.Run(form); }