コード例 #1
0
        public static void Main(string[]  args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            RegisterApp();

            var launcher = new LaunchManager();
            launcher.Install();

            if (args.Length == 0)
            {
                Application.Run(new UI.FormMain());
            }
            else
            {
                foreach (string arg in args)
                {
                    if (arg.Trim().ToLower().StartsWith("/path:"))
                        Program.Path = arg.Replace("/path:", "").Trim().Replace("\"", "");

                    if (arg.Trim().ToLower().StartsWith("/port:"))
                        Program.Port = arg.Replace("/port:", "").Trim().Replace("\"", "");
                }

                Application.Run(new UI.FormLaunchWeb());
            }
        }
        private void buttonStart_Click(object sender, EventArgs e)
        {
            if (textProductPath.Text == string.Empty)
                return;

            if (panelWarning.Visible)
                return;

            var launcher = new LaunchManager();
            launcher.Launch(textProductPath.Text);

            FindForm().Close();
        }
コード例 #3
0
        private void mobileResources_ResourceInstallComplete(object sender, MobileResourceInstallEventArgs e)
        {
            buttonCreateDevEnv.Enabled = true;
            progressBar1.Visible = false;
            labelStatus.Visible = false;

            if (checkLaunch.Checked)
            {
                var launcher = new LaunchManager();
                launcher.Launch(textProductPath.Text);
                this.FindForm().Close();
            }
            else
            {
                MessageBox.Show("The mobile development environment has been created. To start the website use the 'Start Mobile Website' shortcut located at the root of the website.", "Complete", MessageBoxButtons.OK, MessageBoxIcon.Information);
                this.Back();
            }
        }