C# Class SIL.FieldWorks.SharpViews.GraphicsManager

A class that manages the lifetime of an IVwGraphics. Intended usage is using(var gm = new GraphicsManager(this, g)) { // do something with gm.VwGraphics }
Inheritance: IDisposable
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
GraphicsManager ( Control c ) : System

This version will create (and dispose of properly when this is disposed) a Graphics using c.CreateGraphics().

GraphicsManager ( Control c, Graphics g ) : System

Make one with the specified control and Graphics (typically passed in to a Paint method). The Graphics will not be disposed.

Private Methods

Method Description
Dispose ( bool properly ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

GraphicsManager() public method

This version will create (and dispose of properly when this is disposed) a Graphics using c.CreateGraphics().
public GraphicsManager ( Control c ) : System
c System.Windows.Forms.Control
return System

GraphicsManager() public method

Make one with the specified control and Graphics (typically passed in to a Paint method). The Graphics will not be disposed.
public GraphicsManager ( Control c, Graphics g ) : System
c System.Windows.Forms.Control
g System.Drawing.Graphics
return System