public override void Subscribe(Instrument instrument) { if (!subscribbed.Contains(instrument)) { subscribbed.Add(instrument); } }
void Delete() { if (CurrentInstrument != null && InstrumentList.Contains(CurrentInstrument)) { InstrumentList.Remove(CurrentInstrument); } }
public RoundTripArray GetRoundTrips(InstrumentList instrumentList) { ArrayList array = new ArrayList(); foreach (RoundTrip roundTrip in this.list) { if (instrumentList.Contains(roundTrip.Instrument)) { array.Add((object)roundTrip); } } foreach (RoundTrip roundTrip in this.openRoundTrips) { if (instrumentList.Contains(roundTrip.Instrument)) { array.Add((object)roundTrip); } } return(new RoundTripArray(array)); }