/// <summary>Attaches the specified model.</summary> /// <param name="model">The model.</param> /// <param name="view">The view.</param> /// <param name="explorerPresenter">The explorer presenter.</param> public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { this.explorerPresenter = explorerPresenter; this.weatherData = (model as Weather); this.weatherDataView = (view as IMetDataView); this.weatherDataView.BrowseClicked += this.OnBrowse; this.WriteTableAndSummary(this.weatherData.FullFileName); }
/// <summary>Attaches the specified model.</summary> /// <param name="model">The model.</param> /// <param name="view">The view.</param> /// <param name="explorerPresenter">The explorer presenter.</param> public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { this.explorerPresenter = explorerPresenter; this.weatherData = (model as Weather); this.weatherDataView = (view as IMetDataView); this.weatherDataView.BrowseClicked += this.OnBrowse; this.weatherDataView.GraphRefreshClicked += this.GraphRefreshValueChanged; this.weatherDataView.ExcelSheetChangeClicked += this.ExcelSheetValueChanged; this.WriteTableAndSummary(this.weatherData.FullFileName, this.weatherData.ExcelWorkSheetName); }
/// <summary>Attaches the specified model.</summary> /// <param name="model">The model.</param> /// <param name="view">The view.</param> /// <param name="explorerPresenter">The explorer presenter.</param> public void Attach(object model, object view, ExplorerPresenter explorerPresenter) { this.explorerPresenter = explorerPresenter; this.weatherData = model as Weather; this.weatherDataView = view as IMetDataView; this.weatherDataView.BrowseClicked += this.OnBrowse; this.weatherDataView.GraphRefreshClicked += this.GraphRefreshValueChanged; this.weatherDataView.ExcelSheetChangeClicked += this.ExcelSheetValueChanged; this.WriteTableAndSummary(this.weatherData.FullFileName, this.weatherData.ExcelWorkSheetName); this.weatherDataView.TabIndex = this.weatherData.ActiveTabIndex; if (this.weatherData.StartYear >= 0) { this.weatherDataView.GraphStartYearValue = this.weatherData.StartYear; } this.weatherDataView.GraphShowYearsValue = this.weatherData.ShowYears; }