예제 #1
0
 void IDisposable.Dispose()
 {
     if (GridPen != null)
     {
         GridPen.Dispose();
     }
     if (GridRowMid != null)
     {
         GridRowMid.Dispose();
     }
     if (GridRowHeavy != null)
     {
         GridRowHeavy.Dispose();
     }
     if (GridBar != null)
     {
         GridBar.Dispose();
     }
     if (GridRowDiv != null)
     {
         GridRowDiv.Dispose();
     }
     if (SemiBlack != null)
     {
         SemiBlack.Dispose();
     }
     if (SemiBlackBrush != null)
     {
         SemiBlackBrush.Dispose();
     }
     if (AnotherBrush != null)
     {
         AnotherBrush.Dispose();
     }
 }
예제 #2
0
 /// <summary>
 /// Creates an exact, independent copy of the GraphingArgs structure.
 /// </summary>
 /// <returns>An exact, independent copy of the GraphingArgs structure.</returns>
 public object Clone()
 {
     return(new GraphingArgs(
                IndentFromBounds,
                (BackgroundBrush == null ? null : BackgroundBrush.Clone() as Brush),
                (CoordPen == null ? null : CoordPen.Clone() as Pen),
                (CoordFont == null ? null : CoordFont.Clone() as Font),
                (GridPen == null ? null : GridPen.Clone() as Pen),
                (CurvePen == null ? null : CurvePen.Clone() as Pen),
                CurveType
                ));
 }
 void IDisposable.Dispose()
 {
     if (GridPen != null)
     {
         GridPen.Dispose();
     }
     if (GridRowMid != null)
     {
         GridRowMid.Dispose();
     }
     if (GridRowHeavy != null)
     {
         GridRowHeavy.Dispose();
     }
     if (GridBar != null)
     {
         GridBar.Dispose();
     }
     if (GridRowDiv != null)
     {
         GridRowDiv.Dispose();
     }
 }