public DataSetStepEngine(int controlSetUID, double startOffset, double adjustSize) { _controlSetUID = controlSetUID; _startOffset = startOffset; _adjustSize = adjustSize; LinqMetaData meta = new LinqMetaData(); _controlColours = meta.ControlSetColour.Where(csc => csc.ControlSetUID == controlSetUID && csc.SkipForObserverInput == false).Select( csc => xyYColour.FromxyY(csc.XyY_x, csc.XyY_y, csc.XyY_YY)).ToArray(); CurrentStep = 0; TotalSteps = _controlColours.Length * 8; _currentControlColourIndex = -1; _observerDataSet = new ObserverDataSetEntity { ControlSetUID = controlSetUID, StartDateTime = DateTime.Now, EndDateTime = DateTime.Now }; //_observerDataSet.Save(); SetNextControlColour(); }
/// <summary>Creates a new, empty ObserverDataSetEntity object.</summary> /// <returns>A new, empty ObserverDataSetEntity object.</returns> public override IEntity Create() { IEntity toReturn = new ObserverDataSetEntity(); // __LLBLGENPRO_USER_CODE_REGION_START CreateNewObserverDataSet // __LLBLGENPRO_USER_CODE_REGION_END return(toReturn); }