public PlantedListViewModel(INavigation nav) { Title = "Alive Plants!!"; this.Plants = new ObservableRangeCollection <Plant>(GardenCenter.GetPlanted()); this.nav = nav; }
void cilantro_Clicked(object sender, EventArgs args) { var cilantro = new Plant { Name = "Cilantro", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Coriander" }; GardenCenter.PlantThePlant(cilantro); }
void basil_Clicked(object sender, EventArgs args) { var basil = new Plant { Name = "Basil", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Basil" }; GardenCenter.PlantThePlant(basil); }
void zinnia_clicked(object sender, EventArgs args) { var zinnia = new Plant { Name = "Zinnia", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Zinnia" }; GardenCenter.PlantThePlant(zinnia); }
void marigold_clicked(object sender, EventArgs args) { var marigold = new Plant { Name = "Marigold", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Tagetes_erecta" }; GardenCenter.PlantThePlant(marigold); }
void daisy_clicked(object sender, EventArgs args) { var daisy = new Plant { Name = "Daisy", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Bellis_perennis" }; GardenCenter.PlantThePlant(daisy); }
void AddPepper(object sender, EventArgs args) { var jalapeno = new Plant { Name = "Jalapeno Pepper", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Jalape%C3%B1o" }; GardenCenter.PlantThePlant(jalapeno); }
void AddTomato(object sender, EventArgs args) { var tomato = new Plant { Name = "Tomato", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Tomato" }; GardenCenter.PlantThePlant(tomato); }
void AddEggplant(object sender, EventArgs args) { var eggplant = new Plant { Name = "Eggplant", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Eggplant" }; GardenCenter.PlantThePlant(eggplant); }
void AddKale(object sender, EventArgs args) { var kale = new Plant { Name = "Kale", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Kale" }; GardenCenter.PlantThePlant(kale); }
void AddSquash(object sender, EventArgs args) { var squash = new Plant { Name = "Spaghetti Squash", Quantity = 1, WikipediaUrl = "https://en.wikipedia.org/wiki/Spaghetti_squash" }; GardenCenter.PlantThePlant(squash); }
public DeadPlantListViewModel() { DeadPlants = new ObservableRangeCollection <Plant>(GardenCenter.GetDead()); Title = "Here lie the dead plants"; }