Base class for all ViewModel classes displayed by TreeViewItems. This acts as an adapter between a raw data object and a TreeViewItem.
Inheritance: INotifyPropertyChanged
        protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren)
        {
            _parent = parent;

            _children = new ObservableCollection<TreeViewItemViewModel>();

            if (lazyLoadChildren)
                _children.Add(DummyChild);
        }
Exemplo n.º 2
0
 public ObjectViewModel(IOptimizedPersistable obj, TreeViewItemViewModel parentPage, SessionBase session)
   : base(parentPage, true)
 {
   m_objectId = obj.Id;
   m_session = session;
   if (obj.WrappedObject != obj)
     m_objectAsString = obj.WrappedObject.ToString() + " " + new Oid(obj.Id);
   else
     m_objectAsString = obj.ToString();
 }
Exemplo n.º 3
0
        protected TreeViewItemViewModel(TreeViewItemViewModel parent, bool lazyLoadChildren)
        {
            m_parent = parent;

            m_children = new ObservableCollection <TreeViewItemViewModel>();

            if (lazyLoadChildren)
            {
                m_children.Add(DummyChild);
            }
        }
Exemplo n.º 4
0
 public ObjectViewModel(IOptimizedPersistable obj, TreeViewItemViewModel parentPage, SessionBase session)
     : base(parentPage, true)
 {
     m_objectId = obj.Id;
     m_session  = session;
     if (obj.WrappedObject != obj)
     {
         m_objectAsString = obj.WrappedObject.ToString() + " " + new Oid(obj.Id);
     }
     else
     {
         m_objectAsString = obj.ToString();
     }
 }
Exemplo n.º 5
0
 public EdgeTypeViewModel(EdgeType edgeType, TreeViewItemViewModel parentPage, SessionBase session)
     : base(parentPage, true)
 {
     _edgeType = edgeType;
     m_session = session;
 }
Exemplo n.º 6
0
 public VertexTypeViewModel(VertexType vertexType, TreeViewItemViewModel parentPage, SessionBase session)
     : base(parentPage, true)
 {
     _vertexType = vertexType;
     m_session   = session;
 }
Exemplo n.º 7
0
 public VertexViewModel(Vertex vertex, TreeViewItemViewModel parentObject, SessionBase session)
     : base(parentObject, true)
 {
     m_session = session;
     _vertex   = vertex;
 }
 public TypeVersionViewModelNoExpansion(TypeVersion typeVersion, TreeViewItemViewModel parentDatabase, SessionBase session)
     : base(parentDatabase, true)
 {
     _typeVersion = typeVersion;
     m_session    = session;
 }
Exemplo n.º 9
0
 public PropertyTypeViewModel(PropertyType propertyType, TreeViewItemViewModel parentView, SessionBase session)
     : base(parentView, true)
 {
     _propertyType = propertyType;
 }
Exemplo n.º 10
0
 public SchemaListViewModel(IList list, TreeViewItemViewModel parentObject, Page page)
     : base(parentObject, true)
 {
     listAsString = OptimizedPersistable.ListToString(list, page);
 }
Exemplo n.º 11
0
 public TypeVersionViewModel(TypeVersion typeVersion, TreeViewItemViewModel parentDatabase, SchemasViewModel schemaViewModel)
     : base(parentDatabase, true)
 {
     _typeVersion     = typeVersion;
     _schemaViewModel = schemaViewModel;
 }
Exemplo n.º 12
0
 public NotInSchemaViewModel(string message, TreeViewItemViewModel parentDatabase, SessionBase session)
     : base(parentDatabase, true)
 {
     _message  = message;
     m_session = session;
 }