public SignalTrack(Signal signal) { p.Freeze(); Signal = signal; this.MouseWheel += new MouseWheelEventHandler(OnSignalTrackMouseWheel); SignalTrack.SelectTrack(this); }
protected override void OnMouseDown(MouseButtonEventArgs e) { base.OnMouseDown(e); // change track if (Selected != this) { SignalTrack.SelectTrack(this); } }