示例#1
0
        static void Main(string[] args)
        {
            //pull data from the API
            InitializeDataFileXML.PullDataApi();

            //instantiate the controller
            Controller.Controller appController = new Controller.Controller();
        }
示例#2
0
        /// <summary>
        /// nullifies the response repository, and refreshes the data from the API, saving the new data to a newly instantiated repository, then assigns rainy day logic
        /// </summary>
        private void RefreshApiPull()
        {
            InitializeDataFileXML.PullDataApi();

            _responseRepository = null;

            _responseRepository = new ResponseRepositoryXML();

            AssignRainyDays();
        }
示例#3
0
        /// <summary>
        /// This refreshes the data and initializes the form with a calendar using the days from the forecast, but leaving the contents empty to allow the user to click on a Get Weather button themselves
        /// </summary>
        private void FreshApiPullGetWeather()
        {
            InitializeDataFileXML.PullDataApi();

            _responseRepository = null;

            _responseRepository = new ResponseRepositoryXML();

            InitializeComponent();

            SetBlankCalendar();
        }
示例#4
0
        /// <summary>
        /// The constructor for this form that pulls the weather data from the Api
        /// </summary>
        public FormWelcome()
        {
            InitializeDataFileXML.PullDataApi();

            InitializeComponent();
        }