protected override IEnumerable <IPrototypingScreen> FindScreensToDisplay(IPrototypingScreen activeScreen) { if (this.PrototypingService == null) { return(Enumerable.Empty <IPrototypingScreen>()); } return(this.PrototypingService.FindNavigableScreens(activeScreen)); }
protected override IEnumerable <IPrototypingScreen> FindScreensToDisplay(IPrototypingScreen activeScreen) { if (this.PrototypingService == null) { return(Enumerable.Empty <IPrototypingScreen>()); } return(Enumerable.Concat <IPrototypingScreen>(this.PrototypingService.FindComposedScreens(activeScreen), (IEnumerable <IPrototypingScreen>) new IPrototypingScreen[1] { activeScreen })); }
private void Rebuild() { if (this.EditingProperty == null || this.designerContext == null || this.designerContext.PrototypingService == null) { return; } IPrototypingScreen activeScreen = this.designerContext.PrototypingService.ActiveScreen; if (activeScreen == null) { return; } IEnumerable <IPrototypingScreen> screensToDisplay = this.FindScreensToDisplay(activeScreen); this.screens.Clear(); this.screens.AddRange(screensToDisplay); this.CurrentScreenInfo = this.FindScreenByName(this.editingProperty.get_PropertyValue().get_Value() as string); this.ScreensView = CollectionViewSource.GetDefaultView(this.screens); this.NotifyPropertyChanged("CurrentScreen"); this.NotifyPropertyChanged("ScreensView"); }
protected abstract IEnumerable <IPrototypingScreen> FindScreensToDisplay(IPrototypingScreen activeScreen);