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