Exemplo n.º 1
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="newmessage"></param>
 public void Addnewmessage(ChatMessage newmessage)
 {
     Console.WriteLine(newmessage.User.Name + "said" + newmessage.Message + "at" + newmessage.Date);
     foreach(var user in this.connecteduser)
     {
         incoming[user.Name].Add(newmessage);
     }
 }
Exemplo n.º 2
0
 public void Sendmessage(ChatMessage newmessage)
 {
     mainluncher.Addnewmessage(newmessage);
 }