Exemplo n.º 1
0
 private void invokeFederChangedEvent(int track, int feder)
 {
     if (FederChanged != null)
     {
         FederChanged.Invoke(track, feder);
     }
 }
Exemplo n.º 2
0
 public void trackFeder_ValueChanged(Object sender, EventArgs e)
 {
     mFeder        = getFederFromYCoord(151 - (trackFeder.Value - 26));
     txtFeder.Text = (mFeder / 10.0) + "";
     try {
         if (FederChanged != null)
         {
             FederChanged.Invoke(mTrack, mFeder);
         }
     } catch (Exception ex) {
         serr.println("VolumeTracker#trackFeder_ValueChanged; ex=" + ex);
     }
 }
Exemplo n.º 3
0
        public void setFeder(int value)
        {
            int old = mFeder;

            mFeder = value;
            if (old != mFeder)
            {
                try {
                    if (FederChanged != null)
                    {
                        FederChanged.Invoke(mTrack, mFeder);
                    }
                } catch (Exception ex) {
                    serr.println("VolumeTracker#setFeder; ex=" + ex);
                }
            }
            int v = 177 - getYCoordFromFeder(mFeder);

            trackFeder.Value = v;
        }