Exemple #1
0
 // Private Chat Message
 private void PrivateChatMessage(string clientName, string clientNamePrivate, string message)
 {
     if (TabPagePrivateServerDoActionEvent != null)
     {
         TabPagePrivateServerDoActionEvent.Invoke(clientName, clientNamePrivate, message, TabPagePrivateChatServer.TabCommand.Message);
     }
 }
Exemple #2
0
 // Private Chat Stopped
 private void PrivateChatStopped(string clientName, string clientNamePrivate)
 {
     if (TabPagePrivateServerDoActionEvent != null)
     {
         TabPagePrivateServerDoActionEvent.Invoke(clientName, clientName, null, TabPagePrivateChatServer.TabCommand.Closed);
     }
 }
Exemple #3
0
 // Private Chat Started
 private void PrivateChatStarted(string clientName, string clientNamePrivate)
 {
     if (TabControlServer.TabPages.OfType <TabPagePrivateChatServer>().Any(tabPagePrivateChatServer => tabPagePrivateChatServer.ClientName == clientName && tabPagePrivateChatServer.ClientNamePrivate == clientNamePrivate || tabPagePrivateChatServer.ClientName == clientNamePrivate && tabPagePrivateChatServer.ClientNamePrivate == clientName))
     {
         if (TabPagePrivateServerDoActionEvent != null)
         {
             TabPagePrivateServerDoActionEvent.Invoke(clientName, clientNamePrivate, null, TabPagePrivateChatServer.TabCommand.Resumed);
         }
         return;
     }
     Invoke(new Action(delegate
     {
         NewTabPagePrivateChatServer(clientName, clientNamePrivate);
         TabFormat.ItemEvenSize(TabControlServer);
     }));
     //Invoke(new Action(delegate{
     //}));
 }