Пример #1
0
        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);
        }
Пример #2
0
        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;
        }
Пример #3
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            MvvmManager.Init();
        }