public MainWindow() { InitializeComponent(); WindowHelper.RepairWindowBehavior(this); pageAthleteManager = new PageAthleteManager(); pageDBManager = new PageDBManager(); pageSetup = new PageSetup(); pageTestInfo = new PageTestInfo(); pageStandard = new PageStandard(); listMenuData = new List <MenuSource>() { new MenuSource() { MenuName = "人员管理", IconSource = "Assets/Images/athlete.png", Action = MenuAction.AthleteManager, ActionPage = pageAthleteManager }, new MenuSource() { MenuName = "测试信息", IconSource = "Assets/Images/test.png", Action = MenuAction.TestInfo, ActionPage = pageTestInfo }, new MenuSource() { MenuName = "测试参考值管理", IconSource = "Assets/Images/statics.png", Action = MenuAction.Statics, ActionPage = pageStandard }, new MenuSource() { MenuName = "数据库管理", IconSource = "Assets/Images/db.png", Action = MenuAction.DBManager, ActionPage = pageDBManager }, new MenuSource() { MenuName = "设置", IconSource = "Assets/Images/setup.png", Action = MenuAction.Setup, ActionPage = pageSetup }, new MenuSource() { MenuName = "关于软件", IconSource = "Assets/Images/help.png", Action = MenuAction.Help, ActionPage = null } }; listMenu.ItemsSource = listMenuData; }
private void Window_Loaded(object sender, RoutedEventArgs e) { tbTitle.Text = AthleteInfo.Ath_Name + "测试信息"; DSJL.Modules.PageTestInfo pageTestInfo = new PageTestInfo(); pageTestInfo.AthleteInfo = AthleteInfo; pageTestInfo.TestManager = TestManager; this.frame.Navigate(pageTestInfo); }