publicpartialclassApp:Application{publicApp(){InitializeComponent();ICollection<ResourceDictionary>mergedDictionaries=Application.Current.Resources.MergedDictionaries;Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Ngo9BigBOggjHTQxAR8/V1NHaF1cWWhIfEx1RHxQdld5ZFRHallYTnNWUj0eQnxTdEZiW35ccHdQR2VcUEN/Xw==");//Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("Ngo9BigBOggjHTQxAR8/V1NGaF1cWGhIfEx1RHxQdld5ZFRHallYTnNWUj0eQnxTdEZjUX5acHdRQ2JUWEd0Xg==");//if (Config.Desktop)// MainPage = new DesktopShell();//else// MainPage = new MobileShell();}protectedoverrideWindowCreateWindow(IActivationStateactivationState){MauiExceptions.UnhandledException+=(sender,args)=>{Exception?exception=args.ExceptionObjectasException;};varsize=WindowControl.GetOprationSystemResolution();if(Config.Desktop){intwidth=1380;intheight=768;returnnewWindow(newDesktopShell()){Width=width,Height=height,X=(size.Width-width)/2,Y=(size.Height-height)/2};}elsereturnnewWindow(newMobileShell()){Width=700,Height=500,X=100,Y=100};}}