示例#1
0
        private void FrmMain_Load(object sender, EventArgs e)
        {
            // Log an info level message
            log.Info("Application [" + System.Reflection.Assembly.GetEntryAssembly().GetName().Name + "] Start");

            //Init
            ClientControlManager.Init(this);

            //Init ServerStatusMonitor
            ServerStatusMonitor.Init(this, this.labelServerStatus);

            //Refresh Application Interface
            RefreshClientControl();
            RefreshMode();

            //Refresh Server Status
            ConnectionManagerClient.FetchServerStatus();

            //Show Vision
            this.Text = this.Text + " - " + Application.ProductVersion;
        }
 private void RefreshServerStatus()
 {
     ConnectionManagerClient.FetchServerStatus();
 }