/// <summary>
 /// 当程序启动时
 /// </summary>
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     AppManager.MainApp = this;
     AppManager.Awake();
 }
 /// <summary>
 /// 当程序退出时
 /// </summary>
 private void Application_Exit(object sender, ExitEventArgs e)
 {
     AppManager.Exit();
 }
 //当窗口初始化时,触发此方法
 private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)
 {
     //初始化
     AppManager.Start();
 }