Ejemplo n.º 1
0
        private void FrmMain_FormClosing(object sender, FormClosingEventArgs e)
        {
            ClientControlManager.Dispose(this);

            // Log End!
            log.Info("Application [" + System.Reflection.Assembly.GetEntryAssembly().GetName().Name + "] End");
        }
Ejemplo n.º 2
0
 private void StopClient_ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (ClientControlManager.IsClientRunning)
     {
         ClientControlManager.Stop();
     }
     RefreshClientControl();
 }
Ejemplo n.º 3
0
 private void StopClient_button_Click(object sender, EventArgs e)
 {
     if (ClientControlManager.IsClientRunning)
     {
         ClientControlManager.Stop();
     }
     RefreshClientControl();
 }
Ejemplo n.º 4
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;
        }