protected virtual void fireOnSelectedItemClicked(DefaultScrollerView scrollerView) { var handler = this.OnSelectedItemClicked; if (handler != null) { handler(scrollerView); } }
protected virtual void fireOnSelectionChanged(DefaultScrollerView scrollerview) { OnSelectionChangedHandler handler = this.OnSelectionChanged; if (handler != null) { handler(scrollerview); } }
//btnTerminateFilePath internal ExpandedVesselInfo(HaystackContinued haystack, BottomButtons bottomButtons, DefaultScrollerView defaultScrollerView, GroupedScrollerView groupedScrollerView) { this.haystack = haystack; this.defaultScrollerView = defaultScrollerView; this.groupedScrollerView = groupedScrollerView; this.defaultScrollerView.OnSelectionChanged += view => this.updateData(); this.defaultScrollerView.OnSelectedItemClicked += view => this.IsExpanded = !this.IsExpanded; this.groupedScrollerView.OnSelectionChanged += view => this.updateData(); this.groupedScrollerView.OnSelectedItemClicked += view => this.IsExpanded = !this.IsExpanded; this.bottomButtons = bottomButtons; this.windowRect = new Rect(this.haystack.WinRect.xMax, this.haystack.WinRect.y, 0, this.haystack.winRect.height); }
public void Awake() { HSUtils.DebugLog("HaystackContinued#Awake"); this.bottomButtons = new BottomButtons(); this.bottomButtons.LoadSettings(); this.vesselListController = new VesselListController(this, this.bottomButtons); this.defaultScrollerView = new DefaultScrollerView(this, this.vesselListController); this.groupedScrollerView = new GroupedScrollerView(this, this.vesselListController); this.expandedVesselInfo = new ExpandedVesselInfo(this, this.bottomButtons, this.defaultScrollerView, this.groupedScrollerView); this.resizeHandle = new ResizeHandle(); windowId = Resources.rnd.Next(1000, 2000000); }
internal void GUISetup(GroupedScrollerView groupedScrollerView, DefaultScrollerView defaultScrollerView) { this.groupedScrollerView = groupedScrollerView; this.defaultScrollerView = defaultScrollerView; }