private void Button_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; ItemSurveyResult.Instance.RateRegistry(button.Tag as string); Page page; if (button.Name.Contains("Sad")) { page = new PageComment(); } else { page = new PageRateThanks(); } NavigationService.Navigate(page); }
private void ButtonRate_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; ItemSurveyResult.Instance.RateClinic(button.Tag as string); Page page; if (button.Name.Equals("Button0")) { page = new PageComment(); } else { page = new PageRateThanks(); } NavigationService.Navigate(page); }
private void ButtonRate_Click(object sender, RoutedEventArgs e) { Button button = sender as Button; Page page; string mark = (button.Tag ?? string.Empty).ToString(); ItemSurveyResult.Instance.RateDoctor(doctor, mark); if (button.Name.Contains("Angry") || button.Name.Contains("Sad")) { page = new PageComment(); } else { page = new PageRateThanks(); } NavigationService.Navigate(page); }