internal VesselListController(HaystackContinued haystack, BottomButtons bottomButtons) { this.haystack = haystack; bottomButtons.OnNearbyChanged += onNearbyChanged; bottomButtons.OnHiddenVesselsChanged += onHiddenVesselChanged; bottomButtons.OnSortOrderChanged += onSortOrderChanged; this.listIsAscending = bottomButtons.IsAscendingSortOrder; this.vesselComparer = Comparers.CombinedComparer <Vessel> .FromOne(new Comparers.VesselNameComparer()); }
//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); }
internal DefaultScrollerView(HaystackContinued haystackContinued, VesselListController vesselListController) { this.vesselInfoView = new VesselInfoView(haystackContinued); this.vesselListController = vesselListController; }
internal DockingPortListView(HaystackContinued haystackContinued) { this.haystackContinued = haystackContinued; }
internal VesselInfoView(HaystackContinued haystackContinued) { this.haystackContinued = haystackContinued; this.bottomButtons = this.haystackContinued.bottomButtons; this.dockingPortListView = new DockingPortListView(haystackContinued); }