private void SetMaxScenDescription(MaxFleetFactorDataAccess dataAccess) { var minScenId = int.Parse(ddlMaxFleetFactor.SelectedValue); var maxDescription = dataAccess.GetScenarioDescription(minScenId); imgMaxFleetDescription.ToolTip = maxDescription; }
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); }