static void Main(string[] args) { //pull data from the API InitializeDataFileXML.PullDataApi(); //instantiate the controller Controller.Controller appController = new Controller.Controller(); }
/// <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(); }
/// <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(); }
/// <summary> /// The constructor for this form that pulls the weather data from the Api /// </summary> public FormWelcome() { InitializeDataFileXML.PullDataApi(); InitializeComponent(); }