Esempio n. 1
0
        static internal IObject CreateFactoryObject(ClassFactory classFactory, ObjectAdapter objectAdapter)
        {
            CommandAdapter commandModelAdapter = objectAdapter as CommandAdapter;

            if (commandModelAdapter != null)
            {
                return(CreateCommandModel(classFactory, commandModelAdapter));
            }
            AsyncOperationAdapter asyncOperationAdapter = objectAdapter as AsyncOperationAdapter;

            if (asyncOperationAdapter != null)
            {
                return(CreateAsyncOperation(classFactory, asyncOperationAdapter));
            }

            ObservableCollectionAdapter collectionModelAdapter = objectAdapter as ObservableCollectionAdapter;

            if (collectionModelAdapter != null)
            {
                return(CreateCollectionModel(classFactory, collectionModelAdapter));
            }

            ObservableObjectAdapter propertyModelAdapter = objectAdapter as ObservableObjectAdapter;

            if (propertyModelAdapter != null)
            {
                return(new ObservableObject(propertyModelAdapter, classFactory));
            }

            ObjectDispatchAdapter propertyDataAdapter = objectAdapter as ObjectDispatchAdapter;

            if (propertyDataAdapter != null)
            {
                return(new ObjectDispatch <ObjectDispatchAdapter>(propertyDataAdapter, classFactory));
            }

            return(new Object <ObjectAdapter>(objectAdapter));
        }
Esempio n. 2
0
 public ObservableObject(ObservableObjectAdapter adapter, ClassFactory classFactory) :
     base(adapter, classFactory)
 {
 }
Esempio n. 3
0
 public AsyncOperation(AsyncOperationAdapter adapter, ClassFactory classFactory) :
     base(adapter, classFactory)
 {
 }
Esempio n. 4
0
 internal ObjectDispatch(TAdapter adapter, ClassFactory classFactory) :
     base(adapter, classFactory)
 {
 }
Esempio n. 5
0
 public Dictionary(ClassFactory classFactory) :
     base(new DictionaryAdapter(), classFactory)
 {
 }
Esempio n. 6
0
 public Dictionary(DictionaryAdapter adapter, ClassFactory classFactory) :
     base(adapter, classFactory)
 {
 }
 internal BaseNotifyPropertyChanged(TAdapter adapter, ClassFactory classFactory) :
     base(adapter, classFactory)
 {
 }
Esempio n. 8
0
 public Enumerable(EnumerableAdapter adapter, ClassFactory classFactory) :
     base(adapter, classFactory)
 {
 }