Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ParticleEffectScreenControl"/> class.
 /// </summary>
 public ParticleEffectScreenControl()
 {
     if (!DesignMode && LicenseManager.UsageMode == LicenseUsageMode.Runtime)
     {
         _camera         = new Camera2D(new Vector2(400, 300));
         _drawingManager = new DrawingManager();
         DrawingManager.BackgroundColor = BackColor.ToColor();
     }
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Raises the <see cref="E:System.Windows.Forms.Control.BackColorChanged"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
        protected override void OnBackColorChanged(EventArgs e)
        {
            base.OnBackColorChanged(e);

            if (DesignMode)
            {
                return;
            }

            if (DrawingManager != null)
            {
                DrawingManager.BackgroundColor = BackColor.ToColor();
            }
        }