Used with socket handling messages
Exemplo n.º 1
0
        /// <summary>
        /// Set up the parameters and raise a Reply message event
        /// </summary>
        /// <param name="strMessage">Message to be raised </param>
        private void RaiseCommand(string strMessage)
        {
            HttpCommandArgs s = new HttpCommandArgs();

            s.m_Message = strMessage;
            OnCommand(s);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Invoke the message received event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnCommand(HttpCommandArgs e)
 {
     // check to see that there is at least one event handler listening
     if (controlMessage != null)
     {
         controlMessage(this, e);
     }
 }
Exemplo n.º 3
0
        /// <summary>
        /// Event handler for returned messages
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void http_controlMessage(object sender, HttpCommandArgs e)
        {
            try
            {
                SetStatus(e.m_Message);
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }

            // Deal with the http command
            ParseCommand(e.m_Message);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Set up the parameters and raise a Reply message event
 /// </summary>
 /// <param name="strMessage">Message to be raised </param>
 private void RaiseCommand(string strMessage)
 {
     HttpCommandArgs s = new HttpCommandArgs();
     s.m_Message = strMessage;
     OnCommand(s);
 }
Exemplo n.º 5
0
 /// <summary>
 /// Invoke the message received event
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnCommand(HttpCommandArgs e)
 {
     // check to see that there is at least one event handler listening
     if (controlMessage != null) controlMessage(this, e);
 }