예제 #1
0
        private async void GetPlants(string plant)
        {
            await PlantsController.LoadPlantsAsync();

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

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