Beispiel #1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposed)
            {
                return;
            }

            if (disposing)
            {
                cellPadding?.Dispose();
            }
            disposed = true;
        }
Beispiel #2
0
 /// <summary>
 /// The Dispose function.
 /// </summary>
 public void Dispose()
 {
     if (_application != null)
     {
         _application.Dispose();
     }
     if (_windowSize != null)
     {
         _windowSize.Dispose();
     }
     if (_windowPosition != null)
     {
         _windowPosition.Dispose();
     }
 }