Exemplo n.º 1
0
 private void modulation_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 Distorsion)
                 {
                     Distorsion md = ef as Distorsion;
                     md.enabled = modulation_enabled_check.Checked;
                 }
             }
         }
     }
 }
Exemplo n.º 2
0
 private void modulation_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 Distorsion)
                 {
                     Distorsion md = ef as Distorsion;
                     md.Update((float)modulation_trackbar.Value / 10);
                     modulation_label.Text = "a: " + ((float)modulation_trackbar.Value / 10);
                 }
             }
         }
     }
 }