public CarModifierViewModel() { Cmms = new ObservableCollection <CarModifierModel> { CarModifierModel.Create(2000, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black") }), CarModifierModel.Create(2005, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White") }), CarModifierModel.Create(2010, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White"), CarColorModel.Create("Blue") }), CarModifierModel.Create(2015, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White"), CarColorModel.Create("Blue"), CarColorModel.Create("Red") }), CarModifierModel.Create(2020, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White"), CarColorModel.Create("Blue"), CarColorModel.Create("Red"), CarColorModel.Create("Purple") }) }; AddCompleteCarCommand = new DelegateCommand(AddCompleteCarExecuted, AddCompleteCarCanExecute); Cvm = new CarViewModel { MySelectedCar = "", MySelectedModel = "", SelectedCar = new Car(""), SelectedModel = new CarModel("") }; //Cvm.MySelectedCar = new string(Cvm.SelectedCar.Name); //Cvm.MySelectedModel = new string(Cvm.SelectedModel.Name); }
public CarModifierViewModel() { CarModifierModels = new ObservableCollection <CarModifierModel> { CarModifierModel.Create(2000, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black") }), CarModifierModel.Create(2005, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White") }), CarModifierModel.Create(2010, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White"), CarColorModel.Create("Blue") }), CarModifierModel.Create(2015, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White"), CarColorModel.Create("Blue"), CarColorModel.Create("Red") }), CarModifierModel.Create(2020, new ObservableCollection <CarColorModel>() { CarColorModel.Create("Silver"), CarColorModel.Create("Black"), CarColorModel.Create("White"), CarColorModel.Create("Blue"), CarColorModel.Create("Red"), CarColorModel.Create("Purple") }) }; }