private void button4_Click(object sender, EventArgs e) { CampRoster campRoster = new CampRoster(); campRoster.DataGridUpdated += CampRoster_DataGridUpdated; campRoster.Show(); //label1.Text = c.GradeEligible.ToString(); }
private void CampRosterMenu_Click(object sender, EventArgs e) { roster = (CampRoster)isFormOpen(0, "CampRoster"); if (roster != null) { roster.BringToFront(); roster.WindowState = FormWindowState.Maximized; } else { roster = new CampRoster(); roster.MdiParent = this; //campRosterToolStripMenuItem.BackColor = System.Drawing.Color.DarkGray; roster.DataGridUpdated += Roster_DataGridUpdated; roster.Dock = DockStyle.Fill; roster.Show(); } }