private async void PayButton_Click(object sender, RoutedEventArgs e) { ContentDialog content = new ContentDialog() { Title = "결제 확인 (결제 방식: " + ((bool)PayTypeCard.IsChecked ? "카드)" : "현금)"), Content = FoodList.Items.ToStringWithNewLine() + Environment.NewLine + "총 가격: " + TotalPrice, PrimaryButtonText = "결제", CloseButtonText = "취소" }; ContentDialogResult result = await content.ShowAsync(); if (result.Equals(ContentDialogResult.Primary)) { List <FoodData> list = Utils.ConvertListToFoodDataList(FoodList.Items.ToList()); StateManager.AddState(list, (bool)PayTypeCard.IsChecked ? StateManager.PayType.Card : StateManager.PayType.Cash); Pay?.Invoke(TargetTable); Close(); } }