public ProductForm() { InitializeComponent(); _arr = _producer.GetProducer(); cmbx_searchProducer.DataSource = _arr; _arr = _status.GetStatus(); cmbx_searchStatus.DataSource = _arr; _arr = _category.GetCategory(); cmbx_searchCategory.DataSource = _arr; _arr = _sqlProduct.GetProduct(); dgv.DataSource = _arr; _arr = _category.GetCategory(); cmbx_category.DataSource = _arr; _arr = _producer.GetProducer(); cmbx_producer.DataSource = _arr; _arr = _status.GetStatus(); cmbx_status.DataSource = _arr; _arr = _units.GetUnits(); cmbx_units.DataSource = _arr; }
public SRForm() { InitializeComponent(); _arr = _return.GetReturn(); dgv_Return.DataSource = _arr; _arr = _product.GetProduct(); cmbx_returnName.DataSource = (_arr); _arr = _units.GetUnits(); cmbx_returnUnits.DataSource = _arr; _arr = _sale.GetSale(); dgv_Sale.DataSource = _arr; _arr = _product.GetProduct(); cmbx_productName.DataSource = (_arr); _arr = _sale.GetBuyer(); cmbx_buyerSale.DataSource = _arr; _arr = _units.GetUnits(); cmbx_unitsSale.DataSource = _arr; _arr = _sale.GetBuyer(); cmbx_searchBuyer.DataSource = _arr; }
public addReturn() { InitializeComponent(); _arr = _product.GetProduct(); cmbx_productName.DataSource = (_arr); _arr = _units.GetUnits(); cmbx_unitsSale.DataSource = _arr; }
public addSale() { InitializeComponent(); _arr = _product.GetProduct(); cmbx_productName.DataSource = _arr; _arr = _sqlSale.GetBuyer(); cmbx_buyer.DataSource = _arr; _arr = _units.GetUnits(); cmbx_units.DataSource = _arr; }
private void btt_rename_Click_1(object sender, EventArgs e) { if (dgv.DataSource != null) { v.Id = Int32.Parse(txbx_artikul.Text.ToString()); v.Name = txbx_name.Text.Trim(); v.SecondID = Int32.Parse(cmbx_category.SelectedValue.ToString()); v.Third = Int32.Parse(cmbx_producer.SelectedValue.ToString()); v.Price = Int32.Parse(txbx_price.Text.Trim()); v.Quantity = Int32.Parse(txbx_quantity.Text.Trim()); v.UnitsID = Int32.Parse(cmbx_units.SelectedValue.ToString()); v.StatusID = Int32.Parse(cmbx_status.SelectedValue.ToString()); v.Data = dtp.Text.Trim(); v.Comment = txbx_comment.Text.Trim(); v.MainID = Int32.Parse(_id.ToString()); if (_button.EditButton(sender, e, _product.UpdateProduct(v))) { dgv.DataSource = _product.GetProduct(); } } }