public void Init(SignalListDef _SL, DOnInsert _OnInsert) { SL = _SL; OnInsert = _OnInsert; sgWorkPars = new SGWorkPars(); propertyGrid1.SelectedObject = sgWorkPars; timer1.Interval = Convert.ToInt32(ParAll.ST.Defect.Some.Period); SGSet.SaveParsToDB(); }
public JWorkSG(Bank _bank, SignalListDef _SL, ILCard502 _lcard, bool _restart, DOnStatus _OnStatus = null) { bank = _bank; SL = _SL; restart = _restart; OnStatus = _OnStatus; IsComplete = false; sgSet = new SGSet(_lcard, _SL, pr); SGSet.SaveParsToDB(); J.Add(jDemagnetizer = new JDemagnetizer(ParAll.ST.Defect.Demagnetizer, ParAll.CTS.DemagnetizerTS, false)); }