String[] name; //For names passing in the query public AddSectionForm(Controller.UserAccount ua) { InitializeComponent(); addSectionForm = this; sectionName = string.Empty; section = new Controller.Section(); userAccount = ua; MessageBox.Show("Called the User identification constructor."); }
private void addSectionToolStripMenuItem_Click(object sender, EventArgs e) { AddSectionForm addSectionForm = new AddSectionForm(userAccount); addSectionForm.ShowDialog(this); }