Esempio n. 1
0
        private void SelectAnnotateHeaderItemEventHandler(AnnotateHeaderItem headerItem)
        {
            foreach (var item in _annotateHeaderItems)
            {
                if (item != headerItem)
                {
                    item.Deselect();
                }
            }
            headerItem.Select();

            FillContentDataByFeatureType(headerItem.selfType);
        }
Esempio n. 2
0
        private void FillHeaders()
        {
            ResetHeaders();

            _annotateHeaderItems = new List <AnnotateHeaderItem>();

            int length = Enum.GetNames(typeof(Enumerators.ResponseDataType)).Length;
            AnnotateHeaderItem newItem;

            for (int i = 0; i < length; i++)
            {
                newItem = new AnnotateHeaderItem(_parentOfHeadersGroup, (Enumerators.ResponseDataType)i);
                newItem.SelectAnnotateHeaderItemEvent += SelectAnnotateHeaderItemEventHandler;
                _annotateHeaderItems.Add(newItem);
            }

            SelectAnnotateHeaderItemEventHandler(_annotateHeaderItems[0]);
        }