예제 #1
0
        private void SaleForm_Load(object sender, EventArgs e)
        {
            CustomerORM csOrm = new CustomerORM();

            cmbCustomer.DataSource    = csOrm.Select();
            cmbCustomer.DisplayMember = "Name";
            cmbCustomer.ValueMember   = "id";

            RoomsORM rOrm = new RoomsORM();

            cmbRoom.DataSource    = rOrm.Select();
            cmbRoom.DisplayMember = "Name";
            cmbRoom.ValueMember   = "id";

            ProductORM pOrm = new ProductORM();

            dataGridView1.DataSource = pOrm.Select();
        }
 private void CustomerForm_Load(object sender, EventArgs e)
 {
     dataGridView1.DataSource = cOrm.Select();
     cmbMStatus.DataSource    = Enum.GetNames(typeof(MaritalStatus));
     cmbGender.DataSource     = Enum.GetNames(typeof(Gender));
 }