/// <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(); }
/// <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); }
/// <summary> /// Applet collection rewrite to alternate url /// </summary> public AppletCollection(String baseUrl) { this.m_baseUrl = baseUrl; AppletCollection.ClearCaches(); }
/// <summary> /// Constructs a new instance of the applet collection /// </summary> public AppletCollection() { AppletCollection.ClearCaches(); }