private void ReturnedProductsUserControl_Load(object sender, EventArgs e)
        {
            SuppliersORM suppliersORM = new SuppliersORM();

            cmbSuppliers.DataSource    = suppliersORM.Select();
            cmbSuppliers.DisplayMember = "Ad";
            cmbSuppliers.ValueMember   = "Id";
            btnReturnProducts.Enabled  = false;
        }
Пример #2
0
        private void OrderUserControl1_Load(object sender, EventArgs e)
        {
            cmbProduct.DataSource    = productsORM.Select();
            cmbProduct.DisplayMember = "Məhsulun adı";
            cmbProduct.ValueMember   = "Id";

            cmbSupplier.DataSource    = suppliersORM.Select();
            cmbSupplier.DisplayMember = "Ad";
            cmbSupplier.ValueMember   = "Id";
        }
 private void SuppliersUserControl_Load(object sender, EventArgs e)
 {
     dgvSuppliers.DataSource            = suppliersORM.Select();
     dgvSuppliers.Columns["Id"].Visible = false;
 }