Ejemplo n.º 1
0
        public SubClassViewModel(ISubClassBase parent, ISubClassBase subClassBase,
                                 GenNamedApplicationBase def, GenDataDefSubClass subClassDef, bool isReadOnly)
        {
            Parent      = parent;
            Definition  = def;
            SubClassDef = subClassDef;
            IsReadOnly  = isReadOnly;
//            SavedContext = savedContext;
            SubClassBase   = subClassBase;
            SavedReference = Parent != null ? Parent.Reference : "";
            GenObject      = subClassBase.Parent;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the GenObjectViewModel class.
 /// </summary>
 /// <param name="genObject">The <see cref="GenObject"/> being edited.</param>
 /// <param name="definition">The class definition of the object being edited.</param>
 /// <param name="isReadOnly">Is this data readonly?</param>
 public GenObjectViewModel(GenObject genObject, GenNamedApplicationBase definition,
                           bool isReadOnly)
 {
     IsReadOnly = isReadOnly;
     IgnorePropertyValidation = true;
     Definition    = definition;
     GenAttributes = new GenAttributes(genObject.GenDataBase.GenDataDef, genObject.ClassId)
     {
         GenObject = genObject
     };
     GenObject = genObject;
     Changed   = false;
     IsNew     = false;
 }