Example #1
0
 private void BtDefault_Click(object sender, RoutedEventArgs e)
 {
     appConfig = new AppConfig();
     SubpageManager.mainPage.appConfig = appConfig;
     this.DataContext = appConfig;
     PubFunction.ShowMsg(lbMsg, "所有选项已恢复到默认设置!");
 }
Example #2
0
 public MainPage()
 {
     InitializeComponent();
     showNowTime();
     SubpageManager.mainPage = this;
     appConfig = new AppConfig();
     this.WindowState = System.Windows.WindowState.Maximized;
     SubpageManager.ShowSubPage(1, 1);
     loadingControl.SetParent(Mainpage);
 }