/// <summary> /// Default ctor /// </summary> internal BlockSignalPatternEditorForm(IBlockSignal entity) { this.entity = entity; InitializeComponent(); red = new PatternCheckBoxes(this, cbRedEnabled, lbRedInfo, cbR1, cbR2, cbR3, cbR4); green = new PatternCheckBoxes(this, cbGreenEnabled, lbGreenInfo, cbG1, cbG2, cbG3, cbG4); yellow = new PatternCheckBoxes(this, cbYellowEnabled, lbYellowInfo, cbY1, cbY2, cbY3, cbY4); white = new PatternCheckBoxes(this, cbWhiteEnabled, lbWhiteInfo, cbW1, cbW2, cbW3, cbW4); if (entity != null) { red.Load(entity.RedPattern); green.Load(entity.GreenPattern); yellow.Load(entity.YellowPattern); white.Load(entity.WhitePattern); } UpdateAllUI(); }
/// <summary> /// Default ctor /// </summary> internal Clock4StageOutputPatternEditorForm(IClock4StageOutput entity) { this.entity = entity; InitializeComponent(); morning = new PatternCheckBoxes(this, lbRedInfo, cbR1, cbR2); afternoon = new PatternCheckBoxes(this, lbGreenInfo, cbG1, cbG2); evening = new PatternCheckBoxes(this, lbYellowInfo, cbY1, cbY2); night = new PatternCheckBoxes(this, lbWhiteInfo, cbW1, cbW2); if (entity != null) { morning.Load(entity.MorningPattern); afternoon.Load(entity.AfternoonPattern); evening.Load(entity.EveningPattern); night.Load(entity.NightPattern); } UpdateAllUI(); }