/// <summary> /// /// </summary> /// <param name="cache"></param> public DitchData(DitchDataCache cache) { Debug.Assert(cache.IsComplete()); this.DT = cache.WLDT; this.WL1 = cache.WL1; this.WL2 = cache.WL2; this.InstantFlux = cache.InstantFlux; this.UsedAmount = cache.UsedAmount; this.Voltage = cache.Voltage; }
/// <summary> /// /// </summary> /// <param name="cache"></param> /// <returns></returns> public static object Insert(DitchDevice device, DitchDataCache cache) { return Insert(device, cache.WLDT, cache.InstantFlux, cache.WL1, cache.WL2, cache.UsedAmount, cache.Voltage ); }
/// <summary> /// /// </summary> /// <param name="cache"></param> /// <returns></returns> static public object Insert(DitchDevice device, DitchDataCache cache) { return(Insert(device, cache.WLDT, cache.InstantFlux, cache.WL1, cache.WL2, cache.UsedAmount, cache.Voltage)); }