private void ProductsUserControl_Load(object sender, EventArgs e)
        {
            dgvProducts.DataSource            = productsORM.Select();
            dgvProducts.Columns["Id"].Visible = false;
            cmbCategories.DataSource          = categoriesORM.Select();
            cmbCategories.DisplayMember       = "Kateqoriya";
            cmbCategories.ValueMember         = "Id";

            cmbUnitType.DataSource    = unitTypesORM.Select();
            cmbUnitType.DisplayMember = "Vahid Növü";
            cmbUnitType.ValueMember   = "Id";
        }
        private void AddProductsUserControl_Load(object sender, EventArgs e)
        {
            CategoriesORM categoriesORM = new CategoriesORM();

            cmbCategories.DataSource    = categoriesORM.Select();
            cmbCategories.DisplayMember = "Kateqoriya";
            cmbCategories.ValueMember   = "Id";

            UnitTypesORM unitTypesORM = new UnitTypesORM();

            cmbUnitType.DataSource    = unitTypesORM.Select();
            cmbUnitType.DisplayMember = "Vahid Növü";
            cmbUnitType.ValueMember   = "Id";
        }
Exemple #3
0
 private void UnitTypeUserControl_Load(object sender, EventArgs e)
 {
     dgvUnitTypes.DataSource            = unitTypesORM.Select();
     dgvUnitTypes.Columns["Id"].Visible = false;
 }