Пример #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (!disposedValue)
            {
                if (disposing)
                {
                    //if (clip != null)
                    //{
                    //    clip.Dispose();
                    //}
                    DrawingPen.Dispose();
                    DrawingBrush.Dispose();
                    style.BorderPattern.PropertyChanged -= BorderPattern_PropertyChanged;
                }


                mp      = null;
                style   = null;
                Drawing = null;
                //Preparing = null;


                disposedValue = true;
            }
        }