void AppSettingsStartup(bool smth) { var ctx = new ModalDialogContext(); AppSettingsView .Show(ctx) .Subscribe( result => { ctx.Dispose(); }, error => { ctx.Dispose(); dbg.Error(error); } ); }
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); } ); }
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); } ); }
void AboutClick(DeviceLinkEventArgs evarg) { var ctx = new ModalDialogContext(); AboutView .Show(ctx) .Subscribe( result => { ctx.Dispose(); }, error => { ctx.Dispose(); dbg.Error(error); } ); }