示例#1
0
 private void Submit_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         feedbackclass.InsertTheFeedback(feedbackComboBox.SelectedValue.ToString() == "Happy" ? true : false);
         feedbackComboBox.Visibility = Visibility.Hidden;
         submitButton.Visibility     = Visibility.Hidden;
         opinionTextBlock.Content    = "Thank You For Your Feedback";
     }
     catch (Exception exe)
     {
         ModernDialog.ShowMessage("Please Try Again Later Thank You", "Error", MessageBoxButton.OK, null);
     }
 }