Ejemplo n.º 1
0
 private void menutitle1_PreviewMouseDown(object sender, System.Windows.Input.MouseButtonEventArgs e)
 {
     if (menu1.Visibility == System.Windows.Visibility.Visible)
     {
         HideMenu();
         UnselectMenus();
         VisibleMenuTitle();
         HomePage m_HomePage = new HomePage();
         FrameMiddleContent.Navigate(m_HomePage);
         //
         menu1_1.IsSelected = false;
         menu1_2.IsSelected = false;
         menu1_3.IsSelected = false;
         menu1_4.IsSelected = false;
     }
     else
     {
         HideMenu();
         HideMenuTitle();
         menu1.Visibility = System.Windows.Visibility.Visible;
         menutitle1.Visibility = System.Windows.Visibility.Visible;
         //点击后默认显示综合指数
         Development_performance.ComprehensiveIndex ComprehensiveI = new Development_performance.ComprehensiveIndex(this);
         FrameMiddleContent.Navigate(ComprehensiveI);
     }
 }
 private void btn_minenvironment_Click(object sender, RoutedEventArgs e)
 {
     HomePage m_HomePage = new HomePage();
     this.NavigationService.Navigate(m_HomePage);
 }
Ejemplo n.º 3
0
 private void Home_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     // TODO: Add event handler implementation here.
     HideMenu();
     UnselectMenus();
     VisibleMenuTitle();
     HomePage m_HomePage = new HomePage();
     FrameMiddleContent.Navigate(m_HomePage);
 }