public void LoadContours() { var parkingSlots = FeatureLoader.LoadSlots(ContourDataPath); ParkingSlots = new ObservableCollection <ParkingSlotVM>(parkingSlots.Select(ps => new ParkingSlotVM(ps))); SelectedSlot = ParkingSlots?.FirstOrDefault(); }
public ImageVM(string imagePath) { ImagePath = imagePath; var slots = FeatureLoader.LoadSlots(imagePath).Select(ps => new ParkingSlotVM(ps)); ParkingSlots = new ObservableCollection <ParkingSlotVM>(slots); }