public TrainSectionControl(TrainProject project, SectionsEditor editor, Hub h, Port p) { Project = project; Train = h; PortId = p.Id; Editor = editor; Train.DataUpdated += Train_DataUpdated; SuspendLayout(); InitializeComponent(); RefreshUI(); }
public SectionControl(TrainProject project, Section section, SectionsEditor editor, bool showDelete) { Project = project; Section = section; Editor = editor; InitializeComponent(); RefreshUI(); if (showDelete) { pictureBoxDelete.Show(); } }