Esempio n. 1
0
 void m_clientManager_OnNotificationReceived(object sender, NotificationReceivedArgs e)
 {
     if (InvokeRequired)
     {
         this.Invoke((MethodInvoker) delegate
         {
             OnNotificationReceived(e);
         });
     }
     else
     {
         OnNotificationReceived(e);
     }
 }
Esempio n. 2
0
 void serverHandler_OnMessageReceived(object sender, NotificationReceivedArgs e)
 {
     if (InvokeRequired)
     {
         this.Invoke((MethodInvoker) delegate
         {
             OnMessageReceived(e);
         });
     }
     else
     {
         OnMessageReceived(e);
     }
 }
Esempio n. 3
0
 private void OnNotificationReceived(NotificationReceivedArgs e)
 {
     lgvConsole.WriteLine(e.Message, MessageType.Notification);
 }
Esempio n. 4
0
 private void OnMessageReceived(NotificationReceivedArgs args)
 {
     WriteInConsole(args.Type + args.Message);
 }
Esempio n. 5
0
 private void OnNotificationReceived(NotificationReceivedArgs e)
 {
     logViewer.WriteLine(e.Message, MessageType.Notification);
 }
Esempio n. 6
0
 private void OnMessageReceived(NotificationReceivedArgs e)
 {
     WriteInConsole("[" + e.Type + "]: " + e.Message);
 }