/// <summary> /// Fired when the DirectX device is lost. /// </summary> /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param> private static void Drawing_OnPreReset(EventArgs args) { BoxLine.OnLostDevice(); TextFont.OnLostDevice(); }