private async void GetPlants(string plant) { await PlantsController.LoadPlantsAsync(); FillPlantsPicker(); PckrPlants.SelectedItem = plant; }
private void PckrPlants_SelectedIndexChanged(object sender, EventArgs e) { TblSctnPlant.Clear(); string[] columns = PlantsController.Plants.Columns; string[] values = PlantsController.Plants.Lines.First(x => string.Equals(PlantsController.FormatPlantTitle(x), PckrPlants.SelectedItem.ToString())); GUIAnimations.FillTableSection(TblSctnPlant, columns, values); }
private void FillPlantsPicker() { PckrPlants.Items.Clear(); PlantsController.Plants.Lines.ForEach(x => PckrPlants.Items.Add(PlantsController.FormatPlantTitle(x))); }
private async void GetPlants() { await PlantsController.LoadPlantsAsync(); FillPlantsPicker(); }
public PlantsControllerTests() { _mockRepo = new Mock <IPlantsServices>(); _controller = new PlantsController(_mockRepo.Object); }