Beispiel #1
0
        /// <summary>
        /// instantiates a business repository and uses that to apply the business logic for planting days, and saves that business repository to a reponse object, and passes that into the method that fills the table layout panel calendar with weather and planting days both
        /// </summary>
        private void AutoFillPlantingDays()
        {
            ResponseBusiness responseBusiness = new ResponseBusiness(_responseRepository);
            Response         response;

            using (responseBusiness)
            {
                responseBusiness.AutoFillPlantingDays();
                response = responseBusiness.SelectAll();
            }

            FillWeatherDays(response, AppEnum.ManagerAction.AutoFillPlantingDays);
        }
        private void AutoFillPlantingDays()
        {
            //
            // instantiate a responseBusiness class and pass the repository into it
            //
            ResponseBusiness responseBusiness = new ResponseBusiness(responseRepository);

            using (responseBusiness)
            {
                responseBusiness.AutoFillPlantingDays();
            }

            //TODO: View: display the updated planting days dynamically
        }