Пример #1
0
 internal override SharedCollection Register <T>()
 {
     if (TypedCollection == null)
     {
         TypedCollection = new SharedObservableCollection <T>(GetMasterCollection(), this);
     }
     return((SharedCollection)TypedCollection);
 }
Пример #2
0
 /// <summary>
 /// Construct an instance that wraps an existing SharedObjectCollection
 /// </summary>
 /// <param name="collection">The mutable collection</param>
 public ReadOnlySharedObservableCollection(SharedObservableCollection <T> collection)
 {
     this.Items = collection;
 }
 internal SharedObservableCollection(SharedObservableCollection <INotifyPropertyChanged> collection, CollectionEntry entry)
     : this(collection.Name, collection.Type, collection.Items, entry)
 {
     this.IsConnected = collection.IsConnected;
 }