public bool MoveDown(Effect effect) { lock (effectLock) { return effects.MoveDown(effect); } }
public void AddEffect(Effect effect) { InitialiseEffect(effect); lock (effectLock) { this.effects.Add(effect); } }
public void Initialize(Effect effect) { this.effect = effect; flowLayoutPanel1.Controls.Clear(); foreach (Slider slider in effect.Sliders) { EffectSliderPanel panel = new EffectSliderPanel(); panel.Initialize(slider); panel.ValueChanged += new EventHandler(panel_ValueChanged); flowLayoutPanel1.Controls.Add(panel); } }
public void AddEffect(Effect effect) { if (effectStream != null) { effectStream.AddEffect(effect); } else { effects.Add(effect); } RIAddEffect(effect.Name); }
public EffectStream(Effect effect, WaveStream sourceStream) : this(sourceStream) { AddEffect(effect); }
private void InitialiseEffect(Effect effect) { effect.SampleRate = WaveFormat.SampleRate; effect.Init(); effect.Slider(); }
public bool RemoveEffect(Effect effect) { lock (effectLock) { return this.effects.Remove(effect); } }
public void Clear() { this.effect = null; flowLayoutPanel1.Controls.Clear(); }
private void MoveEffect(Effect selectedEffect, int index, int newIndex) { bool isChecked = checkedListBox1.GetItemChecked(index); checkedListBox1.Items.Remove(selectedEffect); checkedListBox1.Items.Insert(newIndex, selectedEffect); checkedListBox1.SetItemChecked(newIndex, isChecked); checkedListBox1.SelectedIndex = newIndex; }
public void RemoveEffect(Effect effect) { if (effectStream != null) { effectStream.RemoveEffect(effect); } else { effects.Remove(effect); } RIRemoveEffect(effect.Name); }
public bool MoveUp(Effect effect) { if (effectStream != null) { return effectStream.MoveUp(effect); } else { return effects.MoveUp(effect); } }