private void SendMessageToAll(string message, Level level, DateTime time)
 {
     try
     {
         _server.SendMessageToAll(message, UserName, level, time);
     }
     catch (Exception)
     {
         LoginToServer();
         SendMessageToAll(message, level, time);
     }
 }
Пример #2
0
 private void SendMessageToAll()
 {
     Server.SendMessageToAll(tbSendText.Text, UserName, Level.Minor);
     TakeMessage(tbSendText.Text, UserName);
 }
Пример #3
0
 private void SendMessageToAll(Level level)
 {
     Server.SendMessageToAll(MessageTextBox.Text, UserName, level);
     TakeMessage(MessageTextBox.Text, UserName, level);
     MessageTextBox.Clear();
 }