Exemple #1
0
 private void Addcoursebtn_Click(object sender, EventArgs e)
 {
     newcourse = new AddNewCourse(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     newcourse.Size = this.Size;
     this.Controls.Add(newcourse);
     newcourse.BringToFront();
 }
Exemple #2
0
 public CoursePanel()
 {
     InitializeComponent();
     coursesdatas = new List <CourseDataPanel>();
     newcourse    = new AddNewCourse(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     courses = Task.Run(() => Connector.connections[0].GetCourses()).Result;
     Initialize();
     pictureBox1.Visible = false;
     panel1.Enabled      = true;
 }