コード例 #1
0
        private void m_praApplication_HttpServerOffline(PRoCon.Core.HttpServer.HttpWebServer sender)
        {
            this.pnlHttpServerSettings.Enabled = true;
            this.pnlHttpServerTester.Visible   = false;

            this.lnkStartStopHttpServer.Text         = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Start");
            this.lblHttpServerServerStatus.Text      = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lblHttpServerServerStatus.Offline");
            this.lblHttpServerServerStatus.ForeColor = Color.Maroon;

            this.picHttpServerServerStatus.Image = this.m_frmParent.picLayerOffline.Image;
        }
コード例 #2
0
        private void m_praApplication_HttpServerOnline(PRoCon.Core.HttpServer.HttpWebServer sender)
        {
            this.txtHttpServerStartPort.Text      = sender.ListeningPort.ToString();
            this.txtPluginsTrustedHostDomain.Text = sender.BindingAddress;

            this.pnlHttpServerSettings.Enabled = false;

            this.lnkHttpServerForwardedTest.Text        = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lnkHttpServerForwardedTest");
            this.lblHttpServerForwardedTestStatus.Text  = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lblHttpServerForwardedTestStatus.Unknown");
            this.picHttpServerForwardedTestStatus.Image = this.m_frmParent.picPortCheckerUnknown.Image;
            this.lnkHttpServerExampleLink.Visible       = false;

            this.pnlHttpServerTester.Visible = true;

            this.lnkStartStopHttpServer.Text         = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lnkStartStopHttpServer.Stop");
            this.lblHttpServerServerStatus.Text      = this.m_praApplication.CurrentLanguage.GetLocalized("frmOptions.lblHttpServerServerStatus.Online", sender.ListeningPort.ToString());
            this.lblHttpServerServerStatus.ForeColor = Color.ForestGreen;

            this.picHttpServerServerStatus.Image = this.m_frmParent.picLayerOnline.Image;
        }