Exemple #1
0
        protected override void DeclareProperties()
        {
            base.DeclareProperties();
            var internalProps = base.PropHolder;

            internalProps.Add(PropDef.Create("Module", "Модуль объекта",
                                             new V8ModuleProcessor(ObjectModule, "Модуль объекта:" + Name)));

            internalProps.Add(PropDef.Create("Help", "Справочная информация", Help));
        }
        //public bool CompareTo(object Comparand)
        //{
        //    var Attrib = Comparand as MDAttribute;
        //    if (Attrib == null)
        //        return false;

        //    return m_RawContent.ToString() == Attrib.m_RawContent.ToString();

        //}

        //public Comparison.IDiffViewer GetDifferenceViewer(object Comparand)
        //{
        //    return null;
        //}

        #endregion

        protected override void DeclareProperties()
        {
            base.DeclareProperties();
            var internalProps = base.PropHolder;

            var typeProp = PropDef.Create("TypeDef", "Тип", m_typeDef);

            internalProps.Add(typeProp);

            //typeProp = PropDef.Create("RawContent", "Внутреннее представление", m_RawContent, Comparison.ToStringComparator.ComparatorObject);
            //internalProps.Add(typeProp);
        }
Exemple #3
0
        protected override void DeclareProperties()
        {
            base.DeclareProperties();
            var internalProps = base.PropHolder;

            internalProps.Add(PropDef.Create("Dialog", "Форма", DialogDef, Comparison.ToStringComparator.ComparatorObject));
            internalProps.Properties["Dialog"].ValueVisualizer = new DialogVisualizer(DialogDef);

            var moduleProp = PropDef.Create("Module", "Модуль", new V8ModuleProcessor(Module, String.Format("{0}.МодульФормы", Name)));

            moduleProp.ValueVisualizer = new V8ModulePropVisualizer((V8ModuleProcessor)moduleProp.Value);
            internalProps.Add(moduleProp);
        }
        protected override void DeclareProperties()
        {
            base.DeclareProperties();
            var internalProps = base.PropHolder;

            var moduleProcessor = new V8ModuleProcessor(ObjectModule, "Модуль объекта:" + Name);
            var moduleProp      = PropDef.Create("Module", "Модуль объекта", moduleProcessor);

            moduleProp.ValueVisualizer = new Comparison.V8ModulePropVisualizer(moduleProcessor);
            internalProps.Add(moduleProp);

            const string kHelpTitle = "Справочная информация";
            var          helpProp   = PropDef.Create("Help", kHelpTitle, Help);

            helpProp.ValueVisualizer = new Comparison.HelpPropVisualizer(Help, kHelpTitle);
            internalProps.Add(helpProp);
        }
        public void Add(string key, string name, object value)
        {
            PropDef prop = PropDef.Create(key, name, value);

            Add(prop);
        }