public Container <T> Redo() { var element = GetLast(redoList); undoList.Add(element); redoList.Remove(element); return(element); }
/// <summary> /// Delete container /// </summary> /// <param name="container">A cloudblobcontainer object</param> /// <param name="accessCondition">Access condition</param> /// <param name="options">Blob request option</param> /// <param name="operationContext">Operation context</param> public void DeleteContainer(CloudBlobContainer container, AccessCondition accessCondition, BlobRequestOptions options, OperationContext operationContext) { foreach (CloudBlobContainer containerRef in ContainerList) { if (container.Name == containerRef.Name) { ContainerList.Remove(containerRef); return; } } }
void RemoveChild(object child) { var treeItem = _itemsToTreeItems[child]; treeItem.RemoveFromTreeList(false); Children.Remove(treeItem); _itemsToTreeItems.Remove(child); _treeItemsToItems.Remove(treeItem); if (IsOpen) { ContainerList.Remove(treeItem); } treeItem.Dispose(); }
public void RemoveFromTreeList(bool isRoot = true) { if (HasChildren) { if (IsOpen || isRoot) { //var myIndex = ContainerList.IndexOf(this); //ContainerList.RemoveRange(myIndex+1,CountVisibleDescendatns()); foreach (var child in Children) { ContainerList.Remove(child); child.RemoveFromTreeList(false); } } } }
/// <inheritdoc/> public virtual void Remove <TFact>(TFact fact) where TFact : IFact { CheckReadOnly(); ContainerList.Remove(fact); }