public ChoseGasPump(IGasStation gasStation) { _gasStation = gasStation; Context = new List <IGasPump>(); InitializeComponent(); foreach (var oneGasPump in gasStation.GasPumpList.Where(g => g.Status == GasPumpStatus.Frei).ToList()) { Context.Add(oneGasPump); } }
public ChoseGasStationObject() { _gasStation = Generator.Generate(); InitializeComponent(); }