コード例 #1
0
        protected override WizardPage[] GetWizardPages()
        {
            var solutionType = new SolutionTypePage();
            var server       = new ServerPage();
            var credentials  = new CredentialsPage();
            var finish       = new FinishPage();
            var browse       = new BrowsePage(solutionType, finish);
            var type         = new TypePage(server, browse);

            type.SetWizard(this);
            solutionType.SetWizard(this);
            solutionType.SetPreviousPage(browse);
            solutionType.SetNextPage(finish);
            browse.SetPreviousPage(type);
            browse.SetWizard(this);
            server.SetPreviousPage(type);
            server.SetNextPage(credentials);
            server.SetWizard(this);
            credentials.SetPreviousPage(server);
            credentials.SetNextPage(finish);
            credentials.SetWizard(this);
            finish.SetPreviousPage(credentials);
            finish.SetWizard(this);
            return(new WizardPage[] { type, browse, solutionType, server, credentials, finish });
        }
コード例 #2
0
ファイル: TypePage.cs プロジェクト: rodrigoieh/JexusManager
        public TypePage(ServerPage jexusPage, BrowsePage iisExpressPage)
        {
            _jexusPage      = jexusPage;
            _iisExpressPage = iisExpressPage;
            InitializeComponent();
            Caption = "Choose Server Type";
            if (Helper.IsRunningOnMono())
            {
                rbIisExpress.Enabled   = false;
                rbVisualStudio.Enabled = false;
                toolTip1.SetToolTip(rbIisExpress, "IIS Express is not supported when running on Mono.");
                toolTip1.SetToolTip(rbVisualStudio, "IIS Express is not supported when running on Mono.");
            }

            if (!IisExpressServerManager.ServerInstalled)
            {
                rbIisExpress.Enabled   = false;
                rbVisualStudio.Enabled = false;
                toolTip1.SetToolTip(rbIisExpress, "IIS Express is not installed to the default location.");
                toolTip1.SetToolTip(rbVisualStudio, "IIS Express is not installed to the default location.");
            }

            if (!JexusServerManager.Enabled)
            {
                rbJexus.Enabled = false;
                toolTip1.SetToolTip(rbJexus, "Jexus web server support must be enabled by --jexus switch.");
            }
        }
コード例 #3
0
 public TypePage(ServerPage jexusPage, BrowsePage iisExpressPage)
 {
     _jexusPage      = jexusPage;
     _iisExpressPage = iisExpressPage;
     InitializeComponent();
     Caption = "Choose Server Type";
     if (Helper.IsRunningOnMono())
     {
         rbIisExpress.Enabled = false;
     }
 }
コード例 #4
0
        public TypePage(ServerPage jexusPage, BrowsePage iisExpressPage)
        {
            _jexusPage      = jexusPage;
            _iisExpressPage = iisExpressPage;
            InitializeComponent();
            Caption = "Choose Server Type";
            if (Helper.IsRunningOnMono())
            {
                rbIisExpress.Enabled = false;
                toolTip1.SetToolTip(rbIisExpress, "IIS Express is not supported when running on Mono.");
            }

            if (Helper.GetIisExpressVersion() == Version.Parse("0.0.0.0"))
            {
                rbIisExpress.Enabled = false;
                toolTip1.SetToolTip(rbIisExpress, "IIS Express is not installed to the default location.");
            }
        }