Example #1
0
 private void Addcinstructorbtn_Click(object sender, EventArgs e)
 {
     newbooks = new AddNewBooks(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     newbooks.Size = this.Size;
     this.Controls.Add(newbooks);
     newbooks.BringToFront();
 }
Example #2
0
 public BooksPanel()
 {
     InitializeComponent();
     booksdatas = new List <BooksDataPanel>();
     newbooks   = new AddNewBooks(this)
     {
         Anchor = AnchorStyles.Top | AnchorStyles.Bottom
     };
     books = Task.Run(() => Connector.connections[0].GetBooks()).Result;
     Initialize();
     pictureBox1.Visible = false;
     panel1.Enabled      = true;
 }