Esempio n. 1
0
        private void list_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            ListViewItem item = (ListViewItem)list.SelectedItem;

            string title = item.Content.ToString();
            string table = item.Tag.ToString();

            switch (table)
            {
            case "symptom":
                Page_Symptom p1 = new Page_Symptom(title);
                NavigationService.Navigate(p1);
                break;

            case "sickness":
                Page_Sickness p2 = new Page_Sickness(title);
                NavigationService.Navigate(p2);
                break;

            case "institutions":
                Page_Institutions p3 = new Page_Institutions();
                NavigationService.Navigate(p3);
                break;

            case "medicine":
                Page_Medicine p4 = new Page_Medicine(title);
                NavigationService.Navigate(p4);
                break;
            }
        }
Esempio n. 2
0
        private void list_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            Page_Symptom p = new Page_Symptom(list.SelectedItem.ToString());

            NavigationService.Navigate(p);
        }