public NutcrackerPaletteManager(Action<Color[]> setPalette, Func<string[]> getPalette ) { InitializeComponent(); _setPalette = setPalette; _getPalette = getPalette; _nutcrackerData = new NutcrackerXmlManager(); PopulatePalettes(); EnableButtons(); }
public NutcrackerPaletteManager(Action <Color[]> setPalette, Func <string[]> getPalette) { InitializeComponent(); _setPalette = setPalette; _getPalette = getPalette; _nutcrackerData = new NutcrackerXmlManager(); PopulatePalettes(); EnableButtons(); }
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(); }
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(); }