示例#1
0
 //ListViewItem 클릭시 Page 전환 기능
 private void ListViewItem_Selected(object sender, RoutedEventArgs e)
 {
     if (sender == HomeItem)
     {
         var home = new View.Home();
         pageControl.NavigationService.Navigate(home);
     }
     if (sender == CalenadarItem)
     {
         var calenadar = new View.Calendar();
         pageControl.NavigationService.Navigate(calenadar);
     }
     if (sender == NoticeItem)
     {
         var notice = new View.Notice();
         pageControl.NavigationService.Navigate(notice);
     }
     if (sender == BindingItem)
     {
         var binding = new View.Binding();
         pageControl.NavigationService.Navigate(binding);
     }
     if (sender == SignOutItem)
     {
         Process[] processList = Process.GetProcessesByName("chromedriver");
         for (int i = processList.Length - 1; i >= 0; i--)
         {
             // processList[i].CloseMainWindow();
             processList[i].Kill();
             processList[i].Close();
         }
         Application.Current.Shutdown();
     }
 }
示例#2
0
 //ListViewItem 클릭시 Page 전환 기능
 private void ListViewItem_Selected(object sender, RoutedEventArgs e)
 {
     if (sender == HomeItem)
     {
         var home = new View.Home();
         pageControl.NavigationService.Navigate(home);
     }
     if (sender == CalenadarItem)
     {
         var calenadar = new View.Calendar();
         pageControl.NavigationService.Navigate(calenadar);
     }
     if (sender == NoticeItem)
     {
         var notice = new View.Notice();
         pageControl.NavigationService.Navigate(notice);
     }
     if (sender == BindingItem)
     {
         var binding = new View.Binding();
         pageControl.NavigationService.Navigate(binding);
     }
     if (sender == SignOutItem)
     {
         Application.Current.Shutdown();
     }
 }