public void notifyMessage(Message msg) {
     // because we are in a different thread from the thread created the form, we need to invoke the update method in
     // in the following way:
     Chatform.UpdateInvoker invoker = new Chatform.UpdateInvoker(m_view.AddMessage);
     // need an async call here, because click on button blocks windows, call to update can only succeed after click handling
     // has finished
     m_view.BeginInvoke(invoker, new object[] { msg });
 }
Beispiel #2
0
 public void notifyMessage(Message msg)
 {
     // because we are in a different thread from the thread created the form, we need to invoke the update method in
     // in the following way:
     Chatform.UpdateInvoker invoker = new Chatform.UpdateInvoker(m_view.AddMessage);
     // need an async call here, because click on button blocks windows, call to update can only succeed after click handling
     // has finished
     m_view.BeginInvoke(invoker, new object[] { msg });
 }