Example #1
0
        void RefreshUI(object sender, EventArgs arg)
        {
            rtboxServerTitle.Invoke((MethodInvoker) delegate
            {
                Lib.UI.UpdateControlOnDemand(
                    cboxInbound, serverItem.overwriteInboundType);

                Lib.UI.UpdateControlOnDemand(
                    rtboxServerTitle, serverItem.GetTitle());

                Lib.UI.UpdateControlOnDemand(
                    lbStatus, serverItem.status);

                Lib.UI.UpdateControlOnDemand(
                    toolStripMenuItemIsInjectImport,
                    serverItem.isInjectImport);

                Lib.UI.UpdateControlOnDemand(
                    toolStripMenuItemSkipCNSite,
                    serverItem.isInjectSkipCNSite);

                Lib.UI.UpdateControlOnDemand(
                    toolStripMenuItemIsAutorun,
                    serverItem.isAutoRun);

                UpdateInboundAddrOndemand();
                UpdateAicLable();
                UpdateChkSelected();
                UpdateOnOffLabel(serverItem.server.isRunning);
                UpdateServerMark();
                UpdateFormFoldingMode();
                UpdateToolsTip();
            });
        }
Example #2
0
        public FormSingleServerLog(Controller.CoreServerCtrl serverItem)
        {
            this.serverItem = serverItem;

            InitializeComponent();

            this.FormClosed += (s, e) =>
            {
                if (updateLogTimer != null)
                {
                    updateLogTimer.Stop();
                    updateLogTimer.Tick -= UpdateLog;
                    updateLogTimer.Dispose();
                }
            };

            VgcApis.Libs.UI.AutoSetFormIcon(this);
            this.Show();
            this.Text = I18N.Log + " - " + serverItem.GetTitle();
        }
Example #3
0
        void RefreshUI(object sender, EventArgs arg)
        {
            rtboxServerTitle.Invoke((MethodInvoker) delegate
            {
                Lib.UI.UpdateControlOnDemand(
                    cboxInbound, serverItem.overwriteInboundType);

                Lib.UI.UpdateControlOnDemand(
                    rtboxServerTitle, serverItem.GetTitle());

                Lib.UI.UpdateControlOnDemand(
                    lbStatus, serverItem.status);

                UpdateServerOptionTickStat();
                UpdateInboundAddrOndemand();
                UpdateMarkLable();
                UpdateSelectedTickStat();
                UpdateOnOffLabel(serverItem.server.isRunning);
                UpdateFilterMarkBox();
                UpdateBorderFoldingStat();
                UpdateToolsTip();
            });
        }
Example #4
0
 public servInfo(Controller.CoreServerCtrl servCtrl)
 {
     isRunning = servCtrl.isServerOn;
     title     = servCtrl.GetTitle();
     sha       = Lib.Utils.SHA256(servCtrl.config);
 }