Пример #1
0
 public LecturesPanel()
 {
     InitializeComponent();
     lecturesdatas = new List <LecturesDataPanel>();
     newlectures   = new AddNewLectures(this);
     lectures      = Task.Run(() => Connector.connections[0].GetLectures()).Result;
     Initialize();
     pictureBox1.Visible = false;
     panel1.Enabled      = true;
 }
Пример #2
0
 private void Addcinstructorbtn_Click(object sender, EventArgs e)
 {
     newlectures = new AddNewLectures(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     newlectures.Size = this.Size;
     this.Controls.Add(newlectures);
     newlectures.BringToFront();
 }