コード例 #1
0
        private void SetMaxScenDescription(MaxFleetFactorDataAccess dataAccess)
        {
            var minScenId      = int.Parse(ddlMaxFleetFactor.SelectedValue);
            var maxDescription = dataAccess.GetScenarioDescription(minScenId);

            imgMaxFleetDescription.ToolTip = maxDescription;
        }
コード例 #2
0
        public void UpdateScenarioStatistics()
        {
            int totalEntries;

            if (ControlScenarioType == ScenarioType.MinCommercialSegment)
            {
                using (var dataAccess = new MinCommercialSegmentDataAccess())
                {
                    totalEntries = dataAccess.CountScenarioEntries(SelectedScenarioId);
                    tbScenarioDescription.Text = dataAccess.GetScenarioDescription(SelectedScenarioId);
                }
            }
            else
            {
                using (var dataAccess = new MaxFleetFactorDataAccess())
                {
                    totalEntries = dataAccess.CountScenarioEntries(SelectedScenarioId);
                    tbScenarioDescription.Text = dataAccess.GetScenarioDescription(SelectedScenarioId);
                }
            }

            lblSummary.Text = string.Format("{0:#,0} entries in Scenario", totalEntries);
        }