internal void SetControls(AppPopupMenuCommand goBack, AppPopupMenuCommand goForward) { this._browserGoBackCommand = goBack; this._browserGoForwardCommand = goForward; // init: Reset(); this._browserGoBackCommand.ToolbarsManager.ToolClick -= OnToolbarsManager_ToolClick; this._browserGoBackCommand.ToolbarsManager.ToolClick += OnToolbarsManager_ToolClick; }
public void SetControls(AppPopupMenuCommand dropDown, AppButtonToolCommand clearList) { this.itemDropdown = dropDown; this.clearListButton = clearList; this.discoveredAppearance = new Appearance[4]; // index 0 and 1: non-discovered small (0) and large (1) this.discoveredAppearance[0] = new Appearance(); this.discoveredAppearance[0].Image = Properties.Resources.no_feed_discovered_16; this.discoveredAppearance[1] = new Appearance(); this.discoveredAppearance[1].Image = Properties.Resources.no_feed_discovered_32; // index 2 and 3: discovered small (2) and large (3) this.discoveredAppearance[2] = new Appearance(); this.discoveredAppearance[2].Image = Properties.Resources.feed_discovered_16; this.discoveredAppearance[3] = new Appearance(); this.discoveredAppearance[3].Image = Properties.Resources.feed_discovered_32; // init: Reset(); this.itemDropdown.ToolbarsManager.ToolClick -= OnToolbarsManager_ToolClick; this.itemDropdown.ToolbarsManager.ToolClick += OnToolbarsManager_ToolClick; }