2
0
Files
controlmymonitormanagement/ControlMyMonitorManagement/App.xaml.cs

33 lines
841 B
C#
Raw Normal View History

using CMM.Language;
using CMM.Library.Config;
2022-05-23 00:58:58 +08:00
using CMM.Library.Method;
using System.Threading.Tasks;
using System.Windows;
namespace CMM.Management
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
internal static XConfig cfg { get; private set; }
internal static CMMMgr CMMMgr { get; private set; }
private readonly CulturesHelper _culturesHelper = new();
2022-05-23 00:58:58 +08:00
public App()
{
//cfg = new();
//cfg.Load();
CMMMgr = new CMMMgr();
Startup += async (s, e) => await App_Startup(s, e);
}
private async Task App_Startup(object sender, StartupEventArgs e)
{
_culturesHelper.ApplySystemLanguage();
2022-05-23 00:58:58 +08:00
await CMMMgr.Init();
}
}
}