Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);

            MvvmManager.Init();
        }