private void panning_trackbar_Scroll(object sender, EventArgs e) { if (glavni.effect != null) { foreach (List <Effect> l in glavni.effect.Effects) { foreach (Effect ef in l) { if (ef is Panning) { Panning pn = ef as Panning; pn.Update(panning_trackbar.Value / 10); if (panning_trackbar.Value > 0) { panning_label.Text = "Right: " + panning_trackbar.Value; } else if (panning_trackbar.Value == 0) { panning_label.Text = "Middle: 0"; } else { panning_label.Text = "Left: " + Math.Abs(panning_trackbar.Value); } } } } } }
private void panning_enabled_check_CheckedChanged(object sender, EventArgs e) { if (glavni.effect != null) { foreach (List <Effect> l in glavni.effect.Effects) { foreach (Effect ef in l) { if (ef is Panning) { Panning pn = ef as Panning; pn.enabled = panning_enabled_check.Checked; } } } } }