/// <summary> /// Initializes a new instance of the <see cref="TimeSpanPicker"/> class. /// </summary> public TimeSpanPicker() { base.FormatString = "f"; base.FormattingEnabled = true; //ResetLocale(); FormatInfo = TimeSpan2FormatInfo.CurrentInfo; list = new TimeSpanCollection(base.Items); ResetValue(); SystemEvents.UserPreferenceChanged += UserPreferenceChanged; }
private ITimeSpanCollection <IPointModel> CreateCollection(IEnumerable <IPointModel> inputs, TimeSpan span) { var groupCollection = new TimeSpanCollection <IPointModel>(); foreach (var second in inputs) { groupCollection.Add(second, span); } return(groupCollection); }
/// <summary> /// Constructor /// </summary> public InstrumentModel() { SwapLong = 0.0; SwapShort = 0.0; StepSize = 0.01; StepValue = 0.01; Commission = 0.0; ContractSize = 1.0; ChartData = new ChartDataModel(); Points = new TimeSpanCollection <IPointModel>(); PointGroups = new TimeSpanCollection <IPointModel>(); }