public override void Subscribe(Instrument instrument)
 {
     if (!subscribbed.Contains(instrument))
     {
         subscribbed.Add(instrument);
     }
 }
 void Delete()
 {
     if (CurrentInstrument != null && InstrumentList.Contains(CurrentInstrument))
     {
         InstrumentList.Remove(CurrentInstrument);
     }
 }
Beispiel #3
0
        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));
        }