27 lines
554 B
C#
27 lines
554 B
C#
using System;
|
|||
|
|
using System.Windows;
|
||
|
|
using PCL.Core.App.Essentials;
|
||
|
|
using PCL.Core.App.IoC;
|
||
|
|
|
||
|
|
namespace MRCC.Launcher;
|
||
|
|
|
||
|
|
public static class Program
|
||
|
|
{
|
||
|
|
[STAThread]
|
||
|
|
public static void Main(string[] args)
|
||
|
|
{
|
||
|
|
// 设置 WPF Application 加载委托
|
||
|
|
ApplicationService.Loading = () =>
|
||
|
|
{
|
||
|
|
var app = new App();
|
||
|
|
return app;
|
||
|
|
};
|
||
|
|
|
||
|
|
// 设置主窗口加载委托
|
||
|
|
MainWindowService.Loading = () => new MainWindow();
|
||
|
|
|
||
|
|
// 启动生命周期
|
||
|
|
Lifecycle.OnInitialize();
|
||
|
|
}
|
||
|
|
}
|