private void invokeFederChangedEvent(int track, int feder) { if (FederChanged != null) { FederChanged.Invoke(track, feder); } }
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); } }
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; }