Example #1
0
        private void CoursesBtn_Click(object sender, EventArgs e)
        {
            this.Hide();
            CourseGrid courseGrid = new CourseGrid();

            courseGrid.ShowDialog();
            this.Show();
        }
        private void ChooseCourseBtnClk(object sender, EventArgs e)
        {
            var example = new CourseGrid(this)
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            if (!this.Parent.Controls.Contains(example))
            {
                this.NewGamePanel.Controls.Add(example);
                example.Show();
            }
        }
 public AddACourse(CourseGrid courseGrid)
 {
     this.courseGrid = courseGrid;
     InitializeComponent();
 }