Пример #1
0
        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);
        }
Пример #2
0
        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);
        }
Пример #3
0
        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);
        }