private void Addcinstructorbtn_Click(object sender, EventArgs e) { newsections = new AddNewSections(this) { Anchor = AnchorStyles.Top | AnchorStyles.Bottom }; newsections.Size = this.Size; this.Controls.Add(newsections); newsections.BringToFront(); }
public SectionsPanel() { InitializeComponent(); sectionsdatas = new List <SectionsDataPanel>(); newsections = new AddNewSections(this) { Anchor = AnchorStyles.Top | AnchorStyles.Bottom }; sections = Task.Run(() => Connector.connections[0].GetSections()).Result; Initialize(); }