/// <summary> /// 构造函数 /// </summary> private AppLoadingWindowObject() { try { _window = new AppLoadingWindow(); } catch (Exception ex) { SeatManage.SeatManageComm.WriteLog.Write("窗体初始化失败:" + ex.Message); throw ex; } }
public static void Main() { AppLoadingWindow loadWindow = new AppLoadingWindow(); loadWindow.ShowDialog(); if (loadWindow.viewModel.InitializeState == SeatManage.EnumType.HandleResult.Failed) { return; } App app = new App(); app.InitializeComponent(); app.Run(); }