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(); }
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; }
private void Form1_Load(object sender, EventArgs e) { lms = new LMS(); dataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; bookBindingSource.DataSource = lms.Book.ToList(); }
private void adminLogin_Load(object sender, EventArgs e) { lms = new LMS(); }