private void Initialize() { _producers = new ObservableCollection <IProducer>(_blc.GetProducers()); if (_motorbike.Id == 0) { } Name = _motorbike.Name; ProductionYear = _motorbike.ProductionYear; SelectedProducer = _motorbike.Producer; TransmissionType = _motorbike.Transmission; }
private void LoadCollection() { Producers = new ObservableCollection <IProducer>(_blc.GetProducers()); Motorbikes = new ObservableCollection <IMotorbike>(_blc.GetMotorbike()); }