public override void InitializeComponent(ICore core) { this.ImageLoader = ComponentRegistry.Instance.GetComponent<ImageLoader>(); this.SignalEmitter = core.Components.SignalEmitter; this.SignalEmitter.Signal += this.OnSignal; this.Configuration = core.Components.Configuration; this.Configuration.GetElement<SelectionConfigurationElement>( WindowsUserInterfaceConfiguration.SECTION, LibraryBrowserBehaviourConfiguration.LIBRARY_BROWSER_TILE_IMAGE ).ConnectValue(option => this.ImageMode = LibraryBrowserBehaviourConfiguration.GetLibraryImage(option)); base.InitializeComponent(core); }
public override void InitializeComponent(ICore core) { this.Configuration = core.Components.Configuration; this.Configuration.GetElement <DoubleConfigurationElement>( WindowsUserInterfaceConfiguration.SECTION, WindowsUserInterfaceConfiguration.UI_SCALING_ELEMENT ).ConnectValue(value => this.ScalingFactor = value); this.Configuration.GetElement <IntegerConfigurationElement>( WindowsUserInterfaceConfiguration.SECTION, LibraryBrowserBehaviourConfiguration.LIBRARY_BROWSER_TILE_SIZE ).ConnectValue(value => this.TileSize = value); this.Configuration.GetElement <SelectionConfigurationElement>( WindowsUserInterfaceConfiguration.SECTION, LibraryBrowserBehaviourConfiguration.LIBRARY_BROWSER_VIEW ).ConnectValue(option => this.ViewMode = LibraryBrowserBehaviourConfiguration.GetLibraryView(option)); this.Configuration.GetElement <SelectionConfigurationElement>( WindowsUserInterfaceConfiguration.SECTION, LibraryBrowserBehaviourConfiguration.LIBRARY_BROWSER_TILE_IMAGE ).ConnectValue(option => this.ImageMode = LibraryBrowserBehaviourConfiguration.GetLibraryImage(option)); base.InitializeComponent(core); }