hydrologics/Oasis.Base — Issue #25: Request: Repository method for retrieving a default dataseries
Author: slebherz
Created: 2011-11-11 16:21:45+00:00
State: open

Presentation needs to be able to retrieve a default dataseries for the input source types: TimeSeries, Pattern, S-A-E.

It seemed to me that the repository would be a good candidate for containing this retrieval method. Presentation doesn't care whether the default is built using hard coded parameters or pulled from the context, it just wants the default.

Context: when the user is making edits to an input source control, they may change the input source type from a non-dataseries type (ex: None, OCL, Constant) to a dataseries type. At this point the viewmodel needs to assign a default dataseries to keep the control in a savable state. For example, when the user selects Pattern or Time Series -- [see here] (https://github.com/hydrologics/Oasis.Presentation/blob/saving-changes/ViewModels/RunElementControls/InputSourceControlViewModel.cs#L270) -- it would be nice to be able to call a TimeSeriesRepo.GetDefault() method.