protected void DisposeAnchorsAndResizeHandles() { foreach (var a in Anchors) { a.Dispose(); } Anchors.Clear(); foreach (var a in ResizeHandles) { a.Dispose(); } ResizeHandles.Clear(); }
public void Unwrap(IBundle bundle) { if (bundle != null) { #region Unwrap the bundle Anchors.Clear(); this.Controller.Model.Unwrap(bundle.Entities); Rectangle rec = Utils.BoundingRectangle(bundle.Entities); rec.Inflate(30, 30); this.Controller.View.Invalidate(rec); #endregion } }
/// <summary> /// Will redo crystals /// </summary> public void RedoCrystals() { Anchors.Clear(); Anchors = GetAnchors(); AddCrystals(); }
public override ITokenParser GetTokenParser() { Chapters.Clear(); Anchors.Clear(); return(new Fb2TokenParser(_ns, _root, GetCss(), Chapters, Anchors)); }
public override ITokenParser GetTokenParser() { Anchors.Clear(); return(new EpubTokenParser(_opf, _opfPath, _zip, GetCss(), Anchors)); }