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();
     }
 }
Esempio n. 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();
            }
        }