示例#1
0
文件: Wrapper.cs 项目: kper/chat
 internal void Hello(Chatroom c)
 {
     chatroom = c;
     //Message m = new Message(this.user, $"{this.user.name} entered!", c, true);
     Enter m = new Enter(this.user,$"{this.user.name} entered!", c, true);
     Send(m);
 }
示例#2
0
文件: Wrapper.cs 项目: kper/chat
 public Wrapper(User user,Color color,Communicator communicator,Chatroom chatroom)
 {
     this.user = user;
     this.color = color;
     this.communicator = communicator;
     this.chatroom = chatroom;
 }
示例#3
0
 private void Refresh_Element(Chatroom e)
 {
     lbDetails.Content = e.getDetails();
 }
示例#4
0
文件: Leave.cs 项目: kper/chat
 public Leave(User sender, string message, Chatroom chatroom, bool doBroadcast)
     : base(sender, message, chatroom, doBroadcast)
 {
 }
示例#5
0
文件: Management.cs 项目: kper/chat
 public Management(User sender,User recipient,Chatroom Mgmt_Chatroom,List<Chatroom> Chatrooms)
     : base(sender,string.Empty,Mgmt_Chatroom,false)
 {
     this.Chatrooms = Chatrooms;
     this.recipient = recipient;
 }