void ShowLoadingProgress(DeviceChannelControl channControl, string title) { ProgressView progress = new ProgressView("Loading .."); channControl.Content = progress; channControl.Title = title; }
public void CreateView(DeviceViewArgs args, IUnityContainer container) { this.container = container; ProgressView progress = new ProgressView("Loading .."); if (this.content.Content is IDisposable) { var dis = this.content.Content as IDisposable; dis.Dispose(); } this.content.Content = progress; loadingDisp.Add(Load(args.nvtSession, args.odmSession, args.capabilities) .ObserveOnCurrentDispatcher() .Subscribe(analyticsArgs => { SectionAnalytics analyticsView = new SectionAnalytics(container); disposables.Add(analyticsView); analyticsView.Init(analyticsArgs); this.content.Content = analyticsView; }, err => { ErrorView errorView = new ErrorView(err); disposables.Add(errorView); this.content.Content = errorView; } )); }
void ShowLoadingProgress(DeviceEngineControl engineControl, string title) { ProgressView progress = new ProgressView("Loading .."); engineControl.Content = progress; engineControl.Title = title; }