public FirmsContacts() { InitializeComponent(); DataBaseQuery dq = new DataBaseQuery(); data = dq.ShowFirms(); }
public ShopProducts() { InitializeComponent(); DataBaseQuery dq = new DataBaseQuery(); data = dq.ShowShopProducts(); }
public EditShopProducts(string value) { DataTable data; string Value = value; InitializeComponent(); DataBaseQuery dq = new DataBaseQuery(); data = dq.GetOneProduct(Value); textBox1.Text = data.Rows[0].Field<string>("product_name"); textBox2.Text = data.Rows[0].Field<int>("product_type").ToString(); textBox3.Text = data.Rows[0].Field<int>("product_price").ToString(); }
public EditShopProducts(string value) { DataTable data; string Value = value; InitializeComponent(); DataBaseQuery dq = new DataBaseQuery(); data = dq.GetOneProduct(Value); textBox1.Text = data.Rows[0].Field <string>("product_name"); textBox2.Text = data.Rows[0].Field <int>("product_type").ToString(); textBox3.Text = data.Rows[0].Field <int>("product_price").ToString(); }