/// <summary> /// Creates a new instance of DrawArgs /// </summary> /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param> /// <param name="inDrawWindow">A MapWindow.Drawing.DrawWindow to draw to</param> /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param> /// <param name="inStage">The integer stage representing an object that has several stages, for all of the parts to be passed through</param> public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart, int inStage) { _graphics = inGraphics; _drawWindow = inDrawWindow; _part = inPart; _stage = inStage; }
/// <summary> /// Replaces the inherited Envelope copy in order to create a copy of the DrawWindow instead /// </summary> /// <returns></returns> public new DrawWindow Copy() { IEnvelope env = base.Copy(); DrawWindow dw = new DrawWindow(env); dw.GeographicView = _geographicView; return dw; }
/// <summary> /// Creates a new instance of the CancelPaint Event Arguments /// </summary> /// <param name="inGraphics">The device that contains the drawing information for the event to determine whether or not to cancel</param> /// <param name="inDrawWindow">The geographic bounds of the draw event</param> /// <param name="inCancel">A boolean specifying the default setting for the draw args.</param> /// <param name="inPart">The part being drawn. This is usually 0, unless NumParts is greater than 1.</param> /// <param name="inStage">The 0-based integer index indicating the stage of the drawing.</param> public DrawVerifyArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart, int inStage, bool inCancel) : base(inGraphics, inDrawWindow, inPart, inStage) { _cancel = inCancel; }
/// <summary> /// Creates a new instance of DrawArgs /// </summary> /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param> /// <param name="inDrawWindow">A MapWindow.Drawing.DrawWindow to draw to</param> public DrawWindowArgs(Graphics inGraphics, DrawWindow inDrawWindow) { _graphics = inGraphics; _drawWindow = inDrawWindow; }
/// <summary> /// Creates a new instance of DrawArgs /// </summary> /// <param name="inGraphics">A System.Windows.Drawing.Graphics object</param> /// <param name="inDrawWindow">A MapWindow.Drawing.DrawWindow to draw to</param> /// <param name="inPart">An integer part representing a value from 0 to NumParts being drawn</param> public DrawArgs(Graphics inGraphics, DrawWindow inDrawWindow, int inPart) { _graphics = inGraphics; _drawWindow = inDrawWindow; _part = inPart; }
private Exception _exception; // The exception that aborted the drawing process /// <summary> /// Creates a new instance of the DrawCompleted Event Arguments /// </summary> /// <param name="inGraphics">A Graphics surface</param> /// <param name="inDrawWindow">An implementation of MapWindow.Geometries.IEnvelope defining the geographic drawing region</param> /// <param name="inCancelled">True if the draw method was cancelled before any rendering took place. A Cancel is different from when an acception is thrown.</param> /// <param name="inException">If an exception occured during rendering, this will not be null.</param> public DrawCompletedArgs(Graphics inGraphics, DrawWindow inDrawWindow, bool inCancelled, Exception inException) : base(inGraphics, inDrawWindow) { _cancelled = inCancelled; _exception = inException; }