private void CreateRoom(object obj) { try { var dialog = new CreateRoomDialog(); if (dialog.ShowDialog() == true && ClientModel.Api != null) { ClientModel.Api.Perform(new ClientCreateRoomAction(dialog.Name, dialog.Type)); } } catch (SocketException se) { SelectedRoom.AddSystemMessage(se.Message); } }
private void CreateRoom(object obj) { try { CreateRoomDialog dialog = new CreateRoomDialog(); if (dialog.ShowDialog() == true && ClientModel.API != null) { ClientModel.API.CreateRoom(dialog.Name, dialog.Type); } } catch (SocketException se) { SelectedRoom.AddSystemMessage(se.Message); } }