コード例 #1
0
 protected virtual void OnDeviceReset(object sender, EventArgs args)
 {
     DeviceReset?.Invoke(sender, args);
 }
コード例 #2
0
 // FIXME: Why does the GraphicsDeviceManager not know enough about the
 //        GraphicsDevice to raise these events without help?
 internal void OnDeviceReset()
 {
     DeviceReset?.Invoke(this);
 }
コード例 #3
0
 protected virtual void OnDeviceReset(EventArgs e)
 {
     DeviceReset?.Invoke(this, e);
 }
コード例 #4
0
        } // 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
コード例 #5
0
 private void GraphicsDevice_DeviceReset(object sender, EventArgs e)
 {
     DeviceReset?.Invoke(this, e);
 }