SetStartupCommandLine() private method

Allows the start of the program to pass in command line arguments
private SetStartupCommandLine ( CommandLineParser commandLine ) : void
commandLine CommandLineParser
return void
コード例 #1
0
ファイル: Program.cs プロジェクト: yaswanth369/TabMigrate
        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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: yuhonghong66/TabMigrate
        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);
        }