Пример #1
0
 void IDisposable.Dispose()
 {
     VeryLargeFont.Dispose();
     VeryLargeFont.Dispose();
     LargeFont.Dispose();
     MediumFont.Dispose();
     SmallFont.Dispose();
     VerySmallFont.Dispose();
     FillBrush.Dispose();
     AccentBrush.Dispose();
     DefaultBrush.Dispose();
 }
Пример #2
0
        public void Dispose()
        {
            PrimaryPen.Dispose();
            DarkPrimaryPen.Dispose();
            LightPrimaryPen.Dispose();
            AccentPen.Dispose();
            TextPen.Dispose();

            PrimaryBrush.Dispose();
            DarkPrimaryBrush.Dispose();
            LightPrimaryBrush.Dispose();
            AccentBrush.Dispose();
            TextBrush.Dispose();

            GC.SuppressFinalize(this);
        }