Esempio n. 1
0
        /// <summary>
        /// 释放资源
        /// </summary>
        public override void Dispose()
        {
            base.Dispose();

            if (Stroke != null)
            {
                Stroke.Dispose();
                Stroke = null;
            }

            if (Fill != null)
            {
                Fill.Dispose();
                Fill = null;
            }

            if (pen != null)
            {
                pen.Dispose();
                pen = null;
            }

            listPoints.Clear();

            listPoints  = null;
            BelongLayer = null;
        }
Esempio n. 2
0
 public void Dispose()
 {
     if (Line != null)
     {
         Line.Dispose();
     }
     if (Outline != null)
     {
         Outline.Dispose();
     }
     if (Fill != null)
     {
         Fill.Dispose();
     }
     if (Symbol != null)
     {
         Symbol.Dispose();
     }
     //NS, 2013-09-17
     if (DashLine != null)
     {
         DashLine.Dispose();
     }
     //NS, 2013-09-23
     //if (_pointBrush != null)
     //{
     //    _pointBrush.Dispose();
     //    _pointBrush = null;
     //}
     //NS, 2013-10-02
     if (CircleLine != null)
     {
         CircleLine.Dispose();
     }
 }
Esempio n. 3
0
        /// <summary>
        /// Releases managed resources
        /// </summary>
        protected override void ReleaseManagedResources()
        {
            CheckDisposed();

            if (Fill != null)
            {
                Fill.Dispose();
                Fill = null;
            }

            base.ReleaseManagedResources();
        }
 /// <summary>
 /// Method to perform cleanup methods for unmanaged resources
 /// </summary>
 public void Dispose()
 {
     if (Fill != null)
     {
         Fill.Dispose();
     }
     if (Line != null)
     {
         Line.Dispose();
     }
     if (Path != null)
     {
         Path.Dispose();
     }
 }
Esempio n. 5
0
        /// <summary>
        /// Releases managed resources
        /// </summary>
        protected override void ReleaseManagedResources()
        {
            if (Fill != null)
            {
                Fill.Dispose();
                Fill = null;
            }

            if (Pattern != null)
            {
                Pattern.Dispose();
                Pattern = null;
            }

            base.ReleaseManagedResources();
        }
Esempio n. 6
0
 public void Dispose()
 {
     if (Line != null)
     {
         Line.Dispose();
     }
     if (Outline != null)
     {
         Outline.Dispose();
     }
     if (Fill != null)
     {
         Fill.Dispose();
     }
     if (Symbol != null)
     {
         Symbol.Dispose();
     }
 }