コード例 #1
0
ファイル: MetDataPresenter.cs プロジェクト: kiwiroy/ApsimX
        /// <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);
        }
コード例 #2
0
ファイル: MetDataPresenter.cs プロジェクト: kiwiroy/ApsimX
        /// <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);
        }
コード例 #3
0
ファイル: MetDataPresenter.cs プロジェクト: pre078/ApsimX
        /// <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);
        }
コード例 #4
0
ファイル: MetDataPresenter.cs プロジェクト: ykhorzon/ApsimX
        /// <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);
        }
コード例 #5
0
ファイル: MetDataPresenter.cs プロジェクト: WordHArry/ApsimX
        /// <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;
        }