public void AddRtValues(string machine, Machine_Values values) { for (int i = 0; i < MachinePark.Count; i++) { if (MachinePark[i].Machine_name == machine) { MachinePark[i]. set_Rtvalues(values); } } }
public void AddRtValues(string machine , Machine_Values values) { for (int i = 0; i < MachinePark.Count; i++) { if (MachinePark[i].Machine_name == machine) { MachinePark[i]. set_Rtvalues(values); } } }
public void set_Rtvalues(Machine_Values values) { RtValues = values; }
public void set_Rtvalues(Machine_Values values) { RtValues = values; }
private void UpdateRtValues() { if (db.GetRTvalues() != null) { foreach (var item in db.GetRTvalues()) { Machine_Values RtValues = new Machine_Values { Frequency = item.Frequency, MotorCurent = item.MotorCurent, MotorTorquyProc = item.MotorTorquyProc, DCvolage = item.DCvolage, MotorRPM = item.MotorRPM, TimeStamp = item.TStamp }; park.AddRtValues(item.Machine, RtValues); } } }