Esempio n. 1
0
        void AppSettingsStartup(bool smth)
        {
            var ctx = new ModalDialogContext();

            AppSettingsView
            .Show(ctx)
            .Subscribe(
                result => {
                ctx.Dispose();
            },
                error => {
                ctx.Dispose();
                dbg.Error(error);
            }
                );
        }
Esempio n. 2
0
        void AboutClick(DeviceLinkEventArgs evarg)
        {
            var ctx = new ModalDialogContext();

            AboutView
            .Show(ctx)
            .Subscribe(
                result => {
                ctx.Dispose();
            },
                error => {
                ctx.Dispose();
                dbg.Error(error);
            }
                );
        }
Esempio n. 3
0
        void UpgradeBatchStartup(BatchTaskEventArgs evargs)
        {
            var ctx = new ModalDialogContext();

            ctx.RegisterInstance <BatchTaskEventArgs>(evargs);
            UpgradeBatchTaskView
            .Show(ctx)
            .Subscribe(
                result => {
                ctx.Dispose();
            },
                error => {
                ctx.Dispose();
                dbg.Error(error);
            }
                );
        }
Esempio n. 4
0
        void BackgroundTasksStartup(bool smth)
        {
            var             ctx       = new ModalDialogContext();
            IUnityContainer container = (IUnityContainer)ctx;

            container.RegisterInstance <IEventAggregator>(eventAggregator);
            BackgroundTasksView
            .Show(ctx)
            .Subscribe(
                result => {
                ctx.Dispose();
            },
                error => {
                ctx.Dispose();
                dbg.Error(error);
            }
                );
        }