protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MvvmManager.Init(); var wpfPlatform = Services.Get <WPFPlatformUIProvider>(); wpfPlatform.ShowAlertOverideFunction = (title, message) => ShowAlertWindow(title, message); wpfPlatform.ShowConfirmOverideFunction = (title, message) => ShowConfirmationDialog(title, message); }
protected override async void OnStartup(StartupEventArgs e) { base.OnStartup(e); MvvmManager.Init(); await ServiceHost .Initialize(ConfigureServices) .StartAsync(); var wpfPlatform = ServiceHost.GetRequiredService <IWPFPlatformUIProvider>(); wpfPlatform.ShowAlertOverideFunction = ShowAlertWindow; wpfPlatform.ShowConfirmOverideFunction = ShowConfirmationDialog; }
protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); MvvmManager.Init(); }