private void CommunicationService_Packet0008Received(object sender, Packet0008ReceivedEventArgs e) { if (!e.Request.UserID.Equals(Singleton <GGTService> .Instance.UserId)) { RoomList.Add(e.CreatedRoom); } }
private async void CommunicationService_Packet0008Received(object sender, Packet0008ReceivedEventArgs e) { if (!e.IsCreated) { Windows.UI.Xaml.Controls.ContentDialog dialog = new Windows.UI.Xaml.Controls.ContentDialog() { Title = "방만들기 실패", Content = $"{e.Request.UserID} {Environment.NewLine}{e.Message}", CloseButtonText = "닫기", DefaultButton = Windows.UI.Xaml.Controls.ContentDialogButton.Close }; switch (await dialog.ShowAsync()) { case Windows.UI.Xaml.Controls.ContentDialogResult.Primary: break; } } }