Ejemplo n.º 1
0
 public NutcrackerPaletteManager(Action<Color[]> setPalette, Func<string[]> getPalette )
 {
     InitializeComponent();
     _setPalette = setPalette;
     _getPalette = getPalette;
     _nutcrackerData = new NutcrackerXmlManager();
     PopulatePalettes();
     EnableButtons();
 }
Ejemplo n.º 2
0
 public NutcrackerPaletteManager(Action <Color[]> setPalette, Func <string[]> getPalette)
 {
     InitializeComponent();
     _setPalette     = setPalette;
     _getPalette     = getPalette;
     _nutcrackerData = new NutcrackerXmlManager();
     PopulatePalettes();
     EnableButtons();
 }
Ejemplo n.º 3
0
        private void InitializeControls()
        {
            _playText         = btnPlayStop.Text;
            RenderRows        = 0;
            RenderCols        = 0;
            _previewRectangle = new Rectangle(0, 0, pbPreview.Size.Width / 2, pbPreview.Height / 2);
            _nodes            = new NutcrackerNodes[RenderRows, RenderCols];
            _effectBuffers    = new[] { new Color[RenderRows, RenderCols], new Color[RenderRows, RenderCols] };
            _effectControls   = new[] { nutcrackerEffectControl1, nutcrackerEffectControl2 };
            _nutcrackerData   = new NutcrackerXmlManager();

            InitializeEffectBuffer(0);
            InitializeEffectBuffer(1);
            InitializeFromSequence();
            InitializeModels();
            InitializePresets();
            SetEffectLayer();
        }
Ejemplo n.º 4
0
        private void InitializeControls()
        {
            _playText = btnPlayStop.Text;
            RenderRows = 0;
            RenderCols = 0;
            _previewRectangle = new Rectangle(0, 0, pbPreview.Size.Width / 2, pbPreview.Height / 2);
            _nodes = new NutcrackerNodes[RenderRows,RenderCols];
            _effectBuffers = new[] {new Color[RenderRows,RenderCols], new Color[RenderRows,RenderCols]};
            _effectControls = new[] {nutcrackerEffectControl1, nutcrackerEffectControl2};
            _nutcrackerData = new NutcrackerXmlManager();

            InitializeEffectBuffer(0);
            InitializeEffectBuffer(1);
            InitializeFromSequence();
            InitializeModels();
            InitializePresets();
            SetEffectLayer();
        }