protected void EmitStopAdded(StopBase stop) { if (this.StopAdded != null) { this.StopAdded(new StopEventArgs(stop)); } }
internal virtual void AddStop(StopBase stop) { this.stops.Add(stop); this.activeStops[stop.Instrument].Add(stop); if (this.StopAdded != null) { this.StopAdded(new StopEventArgs(stop)); } }
internal void EmitStopStatusChanged(StopBase stop) { if (stop.Status != StopStatus.Active) { this.activeStops[stop.Instrument].Remove(stop); } if (this.StopStatusChanged != null) { this.StopStatusChanged(new StopEventArgs(stop)); } }