Esempio n. 1
0
 private void StudentControl_Load(object sender, EventArgs e)
 {
     lms           = new LMS();
     panel.Enabled = false;
     dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     studentBindingSource.DataSource   = lms.Student.ToList();
 }
 private void BarrowControl_Load(object sender, EventArgs e)
 {
     panelBorrow.Enabled = false;
     dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     lms = new LMS();
     getBorrowList();
 }
Esempio n. 3
0
        private void BookControl_Load(object sender, EventArgs e)
        {
            panel.Enabled = false;
            dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;

            lms = new LMS();
            bookBindingSource.DataSource = lms.Book.ToList();
            int i = Convert.ToInt32(lms.Book.Count());

            dataGridView1.ClearSelection();
            dataGridView1.Rows[i].Selected = true;
        }
Esempio n. 4
0
 private void Form1_Load(object sender, EventArgs e)
 {
     lms = new LMS();
     dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill;
     bookBindingSource.DataSource      = lms.Book.ToList();
 }
Esempio n. 5
0
 private void adminLogin_Load(object sender, EventArgs e)
 {
     lms = new LMS();
 }