using CMM.Language; using CMM.Library.Config; using CMM.Library.Method; using System.Threading.Tasks; using System.Windows; namespace CMM.Management { /// /// Interaction logic for App.xaml /// public partial class App : Application { internal static XConfig cfg { get; private set; } internal static CMMMgr CMMMgr { get; private set; } private readonly CulturesHelper _culturesHelper = new(); 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(); await CMMMgr.Init(); } } }