예제 #1
0
 protected void DisposeAnchorsAndResizeHandles()
 {
     foreach (var a in Anchors)
     {
         a.Dispose();
     }
     Anchors.Clear();
     foreach (var a in ResizeHandles)
     {
         a.Dispose();
     }
     ResizeHandles.Clear();
 }
예제 #2
0
 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
     }
 }
예제 #3
0
파일: StillElement.cs 프로젝트: naaturaz/SM
 /// <summary>
 /// Will redo crystals
 /// </summary>
 public void RedoCrystals()
 {
     Anchors.Clear();
     Anchors = GetAnchors();
     AddCrystals();
 }
예제 #4
0
 public override ITokenParser GetTokenParser()
 {
     Chapters.Clear();
     Anchors.Clear();
     return(new Fb2TokenParser(_ns, _root, GetCss(), Chapters, Anchors));
 }
예제 #5
0
 public override ITokenParser GetTokenParser()
 {
     Anchors.Clear();
     return(new EpubTokenParser(_opf, _opfPath, _zip, GetCss(), Anchors));
 }