private static void RespondToRedrawRequired(RedrawTypeRequired type) { NextRedraw = type; if (!CurrentlyDrawing) { FireSceneChangedEvent(); } }
/// <summary>Fires the even that lets listening classes know that the view has changed.</summary> private static void FireViewChangedEvent(RedrawTypeRequired type) { //if (!Drawing.CurrentlyDrawing) //{ if (ViewChanged != null) { ViewChanged(new RedrawRequiredEventArgs(type)); } //} }
/// <summary>Fires the even that lets listening classes know that an option has changed.</summary> private static void FireOptionChangedEvent(RedrawTypeRequired type) { if (!Drawing.CurrentlyDrawing) { if (DrawOptionChanged != null) { DrawOptionChanged(new RedrawRequiredEventArgs(type)); } } }
///<summary>Marks the offscreen buffer as dirty and fires the ScreenChanged event causing it to be redrawn by the host.</summary> public static void MarkAsDirty(RedrawTypeRequired type) { NextRedraw = type; FireSceneChangedEvent(); }
public RedrawRequiredEventArgs(RedrawTypeRequired redrawType) { RedrawTypeRequired = redrawType; }