private void frmBorrow_Load(object sender, EventArgs e)
        {
            dateTimePicker1.Value = DateTime.Now;
            dateTimePicker2.Value = DateTime.Now;
            // Load DataGridView
            dataTable            = new DataTable();
            dataTable            = br.LoadDataGridViewBorrow();
            dgvBorrow.DataSource = dataTable;

            // Load ComboxReadID
            dataTable               = new DataTable();
            dataTable               = bus_read.LoadDataGridViewReader();
            cbxReadID.DataSource    = dataTable;
            cbxReadID.DisplayMember = "r_id";

            // Load ComboxStaff
            dataTable                = new DataTable();
            dataTable                = bus_staff.LoadDataGridViewStaff();
            cbxStaffID.DataSource    = dataTable;
            cbxStaffID.DisplayMember = "s_id";

            // Load ComboxPublisher
            dataTable               = new DataTable();
            dataTable               = bus_staff.LoadDataGridViewStaff();
            cbxBookID.DataSource    = dataTable;
            cbxBookID.DisplayMember = "b_id";
        }
Exemple #2
0
 private void frmStaff_Load(object sender, EventArgs e)
 {
     staff = new BUS_Staff();
     dgvStaff.DataSource = staff.LoadDataGridViewStaff();
     setField();
 }