private void CreateNewRoom()
 {
     var roomCreateWindow = new CreateRoomWindow();
     roomCreateWindow.ShowDialog();
     var a = roomCreateWindow.RoomName;
     if (a.Length != 0)
     {
         this.chatService.SwitchRoom(a);
         this.ChatUsers.Items.Clear();
         this.PopulateChatRoomContainer();
     }
 }
示例#2
0
        private void CreateNewRoom()
        {
            var roomCreateWindow = new CreateRoomWindow();

            roomCreateWindow.ShowDialog();
            var a = roomCreateWindow.RoomName;

            if (a.Length != 0)
            {
                this.chatService.SwitchRoom(a);
                this.ChatUsers.Items.Clear();
                this.PopulateChatRoomContainer();
            }
        }