protected virtual void OnDeviceReset(object sender, EventArgs args) { DeviceReset?.Invoke(sender, args); }
// FIXME: Why does the GraphicsDeviceManager not know enough about the // GraphicsDevice to raise these events without help? internal void OnDeviceReset() { DeviceReset?.Invoke(this); }
protected virtual void OnDeviceReset(EventArgs e) { DeviceReset?.Invoke(this, e); }
} // Initialize #endregion #region On Device Reset /// <summary> /// If the device is recreated then the controls have to be invalidated so that they redraw. /// </summary> private static void OnDeviceReset(object sender, System.EventArgs e) { if (DeviceReset != null) DeviceReset.Invoke(sender, new EventArgs()); } // OnPrepareGraphicsDevice
private void GraphicsDevice_DeviceReset(object sender, EventArgs e) { DeviceReset?.Invoke(this, e); }