internal void Dispose(bool disposing) { if (this.dc != null) { try { this.dc.RestoreHdc(); if (this.disposeDc) { this.dc.Dispose(disposing); } if (this.graphics != null) { this.graphics.ReleaseHdcInternal(this.dc.Hdc); this.graphics = null; } } catch (Exception exception) { if (System.Drawing.ClientUtils.IsSecurityOrCriticalException(exception)) { throw; } } finally { this.dc = null; } } }
internal void Dispose(bool disposing) { if (this.dc != null) { try { this.dc.RestoreHdc(); if (this.disposeDc) { this.dc.Dispose(disposing); } if (this.graphics != null) { this.graphics.ReleaseHdcInternal(this.dc.Hdc); this.graphics = null; } } catch (Exception exception) { if (System.Drawing.ClientUtils.IsSecurityOrCriticalException(exception)) { throw; } } finally { this.dc = null; } } }
public WindowsGraphics(System.Drawing.Internal.DeviceContext dc) { this.dc = dc; this.dc.SaveHdc(); }
public WindowsGraphics(System.Drawing.Internal.DeviceContext dc) { this.dc = dc; this.dc.SaveHdc(); }