Beispiel #1
0
 public static void OnStatusMessage(object sender, StatusMessageArgs e)
 {
     if (e.Status == NetConnectionStatus.Connected)
     {
         Console.WriteLine("Connected");
     }
 }
Beispiel #2
0
 private void OnStatusMessage(object sender, StatusMessageArgs msg)
 {
     if (msg.Status == NetConnectionStatus.Connected)
     {
         SendPluginLoadMessage();
     }
 }
Beispiel #3
0
 private void OnStatusMessage(object sender, StatusMessageArgs msg)
 {
     if (msg.Status == NetConnectionStatus.Connected)
     {
         var rspMsg = new QueryConnectMessage();
         client.SendMessage(rspMsg);
     }
 }
Beispiel #4
0
 private void OnStatusMessage(object sender, StatusMessageArgs msg)
 {
     if (msg.Status == NetworkHelper.NetConnectionStatus.Connected)
     {
         var rspMsg = new QueryConnectMessage();
         server.SendMessage(rspMsg, msg.Connection);
     }
 }
Beispiel #5
0
        /**
         * Report message.
         * Report given message to connected handlers.
         * @param message text to send to handlers
         */

        public void ReportMessage(string message)
        {
            if (StatusMessageChanged != null)
            {
                StatusMessageArgs e = new StatusMessageArgs();
                e.Message = message;
                StatusMessageChanged(this, e);
            }
        }
        private void Userv_StatusMessageChanged(object sender, StatusMessageArgs e)
        {
            // write event message to gui if used
            if (SettingsManager.Instance.UseGUI)
            {
                _progress.AddLogText(e.Message);
            }
            if (SettingsManager.Instance.ShowProgress)
            {
                _progressScreenViewModel.SetProgressMessage(e.Message);
                Application.DoEvents();
            }

            // write message to log
            WriteLog(e.Message);
        }
Beispiel #7
0
 private void OnStatusMessage(object sender, StatusMessageArgs msg)
 {
 }
Beispiel #8
0
        /**
         * Called when status message changed.
         * @see ReportStatus()
         */

        private void fileUpdater_StatusMessageChanged(object sender, StatusMessageArgs data)
        {
            ReportStatus(data.Message);
        }