public clsSections(FormStart CallingForm) { mf = CallingForm; Items = cSections.AsReadOnly(); mf.AutoSteerPGN.RelaysChanged += AOGnew_RelaysChanged; mf.SwitchBox.SwitchPGNreceived += SwitchBox_SwitchPGNreceived; ToAOG = new PGN234(mf); }
public clsSections(FormStart CallingForm) { mf = CallingForm; Items = cSections.AsReadOnly(); // to use ForEach mf.AutoSteerPGN.RelaysChanged += AOGnew_RelaysChanged; mf.SwitchBox.SwitchPGNreceived += SwitchBox_SwitchPGNreceived; ToAOG = new PGN234(mf); SwON[(int)Switches.Auto] = true; }