Beispiel #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;
            }
        }
        private void button_institutions_MouseDown(object sender, MouseButtonEventArgs e)
        {
            Page_Institutions p = new Page_Institutions();

            NavigationService.Navigate(p);
        }