예제 #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));
        }
예제 #2
0
        //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);
        }
예제 #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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        public void Add(string key, string name, object value)
        {
            PropDef prop = PropDef.Create(key, name, value);

            Add(prop);
        }
예제 #6
0
 public void Add(PropDef PropertyDefinition)
 {
     m_Props.Add(PropertyDefinition.Key, PropertyDefinition);
 }