/// <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); }
/// <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); } }
/// <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); }
/// <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); }