Example #1
0
 public MediaFolder(Repository repository, string name, Folder parent)
     : base(repository, name, parent)
 {
 }
Example #2
0
        public virtual void Delete(Repository repository, Folder folder, string uuid)
        {
            var textFolder = (TextFolder)folder;

            textFolder = textFolder.AsActual();
            var textContent = textFolder.CreateQuery().WhereEquals("UUID", uuid).FirstOrDefault();
            if (textContent != null)
            {
                EventBus.Content.ContentEvent.Fire(ContentAction.PreDelete, textContent);

                TextContentProvider.Delete(textContent);

                EventBus.Content.ContentEvent.Fire(ContentAction.Delete, textContent);
            }
        }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Folder"/> class.
 /// </summary>
 /// <param name="repository">The repository.</param>
 /// <param name="name">The name.</param>
 /// <param name="parent">The parent.</param>
 public Folder(Repository repository, string name, Folder parent)
 {
     Repository = repository;
     this.Name = name;
     this.Parent = parent;
 }