Esempio n. 1
0
        private async void GetPlants(string plant)
        {
            await PlantsController.LoadPlantsAsync();

            FillPlantsPicker();
            PckrPlants.SelectedItem = plant;
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 private void FillPlantsPicker()
 {
     PckrPlants.Items.Clear();
     PlantsController.Plants.Lines.ForEach(x => PckrPlants.Items.Add(PlantsController.FormatPlantTitle(x)));
 }
Esempio n. 4
0
        private async void GetPlants()
        {
            await PlantsController.LoadPlantsAsync();

            FillPlantsPicker();
        }
Esempio n. 5
0
 public PlantsControllerTests()
 {
     _mockRepo   = new Mock <IPlantsServices>();
     _controller = new PlantsController(_mockRepo.Object);
 }