private void Instructornewlb_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { newinstructor = new AddNewInstructor2(this) { Anchor = AnchorStyles.Top | AnchorStyles.Bottom }; newinstructor.Size = this.Size; this.Controls.Add(newinstructor); newinstructor.BringToFront(); }
public AddNewCourse(IExitAddNewCourse caller) { InitializeComponent(); newinstructor = new AddNewInstructor2(this) { Anchor = AnchorStyles.Top | AnchorStyles.Bottom }; newmaterial = new AddNewMaterial2(this) { Anchor = AnchorStyles.Top | AnchorStyles.Bottom }; exit = caller; wireup(); }