예제 #1
0
        protected virtual void fireOnSelectedItemClicked(DefaultScrollerView scrollerView)
        {
            var handler = this.OnSelectedItemClicked;

            if (handler != null)
            {
                handler(scrollerView);
            }
        }
예제 #2
0
        protected virtual void fireOnSelectionChanged(DefaultScrollerView scrollerview)
        {
            OnSelectionChangedHandler handler = this.OnSelectionChanged;

            if (handler != null)
            {
                handler(scrollerview);
            }
        }
예제 #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);
        }
예제 #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);
        }
예제 #5
0
 internal void GUISetup(GroupedScrollerView groupedScrollerView, DefaultScrollerView defaultScrollerView)
 {
     this.groupedScrollerView = groupedScrollerView;
     this.defaultScrollerView = defaultScrollerView;
 }