Пример #1
0
 /// <summary>
 /// Add an applet manifest to the collection
 /// </summary>
 /// <param name="item"></param>
 public void Add(AppletManifest item)
 {
     if (this.IsReadOnly)
     {
         throw new InvalidOperationException("Collection is readonly");
     }
     this.m_appletManifest.Add(item);
     this.CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Add, item));
     AppletCollection.ClearCaches();
 }
Пример #2
0
 /// <summary>
 /// Wrapper for the readonly applet collection
 /// </summary>
 internal ReadonlyAppletCollection(AppletCollection wrap)
 {
     this.m_appletManifest   = wrap;
     wrap.CollectionChanged += (o, e) => this.CollectionChanged?.Invoke(o, e);
 }
Пример #3
0
 /// <summary>
 /// Applet collection rewrite to alternate url
 /// </summary>
 public AppletCollection(String baseUrl)
 {
     this.m_baseUrl = baseUrl;
     AppletCollection.ClearCaches();
 }
Пример #4
0
 /// <summary>
 /// Constructs a new instance of the applet collection
 /// </summary>
 public AppletCollection()
 {
     AppletCollection.ClearCaches();
 }