Page.xaml.cs
上传用户:jxqhsy
上传日期:2020-12-31
资源大小:1793k
文件大小:2k
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Net;
- using System.Windows;
- using System.Windows.Controls;
- using System.Windows.Documents;
- using System.Windows.Input;
- using System.Windows.Media;
- using System.Windows.Media.Animation;
- using System.Windows.Shapes;
- using System.Windows.Interop;
- namespace SFGS
- {
- public partial class Page : UserControl
- {
- public Page()
- {
- InitializeComponent();
- }
- private void hbHome_Click(object sender, RoutedEventArgs e)
- {
- Welcome welcom = new Welcome();
- welcom.Width = 960;
- welcom.Height = 700;
- containerCanvas.Children.Clear();
- containerCanvas.Children.Add(welcom);
- }
- private void hbContact_Click(object sender, RoutedEventArgs e)
- {
- ContactUs cu = new ContactUs();
- cu.Width = 960;
- cu.Height = 700;
- containerCanvas.Children.Clear();
- containerCanvas.Children.Add(cu);
- }
- private void hbAbout_Click(object sender, RoutedEventArgs e)
- {
- About about = new About();
- about.Width = 960;
- about.Height = 700;
- containerCanvas.Children.Clear();
- containerCanvas.Children.Add(about);
- }
- private void hbAdmin_Click(object sender, RoutedEventArgs e)
- {
- Admin admin = new Admin();
- Login login = new Login();
- login.Width = 960;
- login.Height = 700;
- admin.Width = 960;
- admin.Height = 700;
- containerCanvas.Children.Clear();
- if (Global.IsLogin)
- {
- containerCanvas.Children.Add(admin);
- }
- else
- {
- containerCanvas.Children.Add(login);
- }
- }
- }
- }