private void LoadSysSetCompleted(LoadOperation<t_Sys_MainRealTimeSet> result) { if (result.HasError) { MessageBox.Show("加截设置参数出错!", "出错啦!", MessageBoxButton.OK); return; } if (result.Entities.Count() == 0) { MessageBox.Show("还未设置参数!", "出错啦!", MessageBoxButton.OK); return; } SysSetReal = result.Entities.First(); realTime.Ylower = SysSetReal.Ylower; realTime.Yupper = SysSetReal.Yupper; realTime.YmaxValue = SysSetReal.YmaxValue; realTime.YminValue = SysSetReal.YminValue; realTime.GridHeight = SysSetReal.GridHeight; realTime.BackColor = Colors.Black; realTime.ForeColor = Colors.Red; //先加载一个值 timer_Tick(null,null); timer.Start(); }
/// <summary> /// 创建新的 t_Sys_MainRealTimeSet 对象。 /// </summary> /// <param name="id">ID 属性的初始值。</param> /// <param name="stationID">StationID 属性的初始值。</param> /// <param name="deviceID">DeviceID 属性的初始值。</param> /// <param name="channelNO">ChannelNO 属性的初始值。</param> /// <param name="ymaxValue">YmaxValue 属性的初始值。</param> /// <param name="yminValue">YminValue 属性的初始值。</param> /// <param name="yupper">Yupper 属性的初始值。</param> /// <param name="ylower">Ylower 属性的初始值。</param> /// <param name="gridHeight">GridHeight 属性的初始值。</param> public static t_Sys_MainRealTimeSet Createt_Sys_MainRealTimeSet(global::System.Int32 id, global::System.Int32 stationID, global::System.Int32 deviceID, global::System.Int32 channelNO, global::System.Double ymaxValue, global::System.Double yminValue, global::System.Double yupper, global::System.Double ylower, global::System.Double gridHeight) { t_Sys_MainRealTimeSet t_Sys_MainRealTimeSet = new t_Sys_MainRealTimeSet(); t_Sys_MainRealTimeSet.ID = id; t_Sys_MainRealTimeSet.StationID = stationID; t_Sys_MainRealTimeSet.DeviceID = deviceID; t_Sys_MainRealTimeSet.ChannelNO = channelNO; t_Sys_MainRealTimeSet.YmaxValue = ymaxValue; t_Sys_MainRealTimeSet.YminValue = yminValue; t_Sys_MainRealTimeSet.Yupper = yupper; t_Sys_MainRealTimeSet.Ylower = ylower; t_Sys_MainRealTimeSet.GridHeight = gridHeight; return t_Sys_MainRealTimeSet; }
/// <summary> /// 用于向 t_Sys_MainRealTimeSet EntitySet 添加新对象的方法,已弃用。请考虑改用关联的 ObjectSet<T> 属性的 .Add 方法。 /// </summary> public void AddTot_Sys_MainRealTimeSet(t_Sys_MainRealTimeSet t_Sys_MainRealTimeSet) { base.AddObject("t_Sys_MainRealTimeSet", t_Sys_MainRealTimeSet); }