protected virtual void RaiseLoadContent(GraphicsDeviceEventArgs args) { var handler = LoadContent; if (handler != null) { handler(this, args); } }
/// <summary> /// Invoked after either control has created its graphics device. /// </summary> private void OnGraphicsControlLoadContent(object sender, GraphicsDeviceEventArgs e) { // Create our 3D cube object _cube.Initialize(e.GraphicsDevice); }
protected virtual void RaiseLoadContent(GraphicsDeviceEventArgs args) { var handler = LoadContent; if (handler != null) handler(this, args); }