protected virtual void fireOnSelectionChanged(GroupedScrollerView view)
        {
            OnSelectionChangedHandler handler = this.OnSelectionChanged;

            if (handler != null)
            {
                handler(view);
            }
        }
        protected virtual void fireOnSelectedItemClicked(GroupedScrollerView view)
        {
            var handler = this.OnSelectedItemClicked;

            if (handler != null)
            {
                handler(view);
            }
        }
Esempio n. 3
0
        //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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 internal void GUISetup(GroupedScrollerView groupedScrollerView, DefaultScrollerView defaultScrollerView)
 {
     this.groupedScrollerView = groupedScrollerView;
     this.defaultScrollerView = defaultScrollerView;
 }