コード例 #1
0
        static void Main(string[] arguments)
        {
            Action <string[]> method = (args) =>
            {
                // Check if this is a "MakeDefault" call
                if (args != null && args.Length > 0 && args[0] == "MakeDefault")
                {
                    if (DefaultAssociationHelper.MakeDefaultInternal(null))
                    {
                        Environment.ExitCode = 101;
                    }
                    return;
                }

                string file = null;
                if (args != null)
                {
                    file = args.Where(s => File.Exists(s)).FirstOrDefault();
                }

                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm(file));
            };

            AppProgram.Start(
                applicationName: "SvclogViewer",
                authorName: "Martijn Stolk",
                reportBugEndpoint: "http://martijn.tikkie.net/reportbug.php",
                args: arguments,
                mainMethod: method);
        }
コード例 #2
0
        static void Main(string[] arguments)
        {
            Action <string[]> mainMethod = (args) =>
            {
                XmlConfigurator.Configure();
                Logger.Info("Starting...");
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                Application.Run(new MainForm());
            };

            AppProgram.Start(
                "AzureCloudserviceDeployer",
                "Martijn Stolk",
                "http://martijn.tikkie.net/reportbug.php",
                "http://martijn.tikkie.net/feedback.php",
                mainMethod,
                arguments);
        }
コード例 #3
0
ファイル: Program.cs プロジェクト: martijns/AzureLogViewer
        static void Main(string[] arguments)
        {
            Action <string[]> method = (args) =>
            {
                XmlConfigurator.Configure();
                Logger.Info("Starting...");
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);
                var form = new MainForm();
                Application.Run(form);
            };

            AppProgram.Start(
                applicationName: "AzureLogViewer",
                authorName: "Martijn Stolk",
                reportBugEndpoint: "http://martijn.tikkie.net/reportbug.php",
                feedbackEndpoint: "http://martijn.tikkie.net/feedback.php",
                args: arguments,
                mainMethod: method);
        }