Пример #1
0
        } // GetClassBaseType

        /// <summary>
        /// Nav easy goto check availability
        /// </summary>
        private void navEasyGoto_CheckAvailability(object sender, CheckContentAvailabilityEventArgs ea)
        {
            LanguageElement element = ea.Element;

            if (element == null)
            {
                return;
            }
            _currentClass = element.GetClass();
            if (_currentClass != null)
            {
                ea.Available = true;
                ea.AddSubMenuItem(MenuItem_ClassDefinition, "Class definition");
                _currentBaseClassRef = GetClassBaseType(_currentClass);
                if (_currentBaseClassRef != null)
                {
                    ea.AddSubMenuItem(MenuItem_ClassDefinition_InheritedClass, "Base class");
                    ea.AddSubMenuItem(MenuItem_ClassDefinition_InheritedClass_Definition, "Base class definition");
                }
            } // if
        }     // navEasyGoto_CheckAvailability