|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- using HandyControl.Controls;
- using HKCardIN.ViewModels;
- using Stylet;
- using StyletIoC;
- using System;
- using System.Configuration;
- using System.Windows.Controls;
- using System.Windows.Threading;
- using System.Windows;
-
- namespace HKCardIN
- {
- public class Bootstrapper : Bootstrapper<RootViewModel>
- {
- /// <summary>
- /// 程序启动
- /// </summary>
- protected override void OnStart()
- {
- }
-
- protected override void ConfigureIoC(IStyletIoCBuilder builder)
- {
- }
-
- /// <summary>
- /// 初始化系统相关参数配置
- /// </summary>
- protected override void Configure()
- {
- base.Configure();
- }
-
- /// <summary>
- /// 初始化VM
- /// </summary>
- protected override void Launch()
- {
- base.Launch();
- }
-
- /// <summary>
- /// 加载首页VM
- /// </summary>
- /// <param name="rootViewModel"></param>
- protected override void DisplayRootView(object rootViewModel)
- {
- base.DisplayRootView(rootViewModel);
- }
-
- /// <summary>
- ///VM加载完毕
- /// </summary>
- protected override void OnLaunch()
- {
- base.OnLaunch();
- }
-
- /// <summary>
- /// 退出
- /// </summary>
- /// <param name="e"></param>
- protected override void OnExit(ExitEventArgs e)
- {
- base.OnExit(e);
- }
-
- /// <summary>
- /// 全局异常捕获
- /// </summary>
- /// <param name="e"></param>
- protected override void OnUnhandledException(DispatcherUnhandledExceptionEventArgs e)
- {
- GC.Collect();
- }
- }
- }
|