Пример #1
0
        public FirmsContacts()
        {
            InitializeComponent();
            DataBaseQuery dq = new DataBaseQuery();

            data = dq.ShowFirms();
        }
Пример #2
0
        public ShopProducts()
        {
            InitializeComponent();
            DataBaseQuery dq = new DataBaseQuery();

            data = dq.ShowShopProducts();
        }
Пример #3
0
 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();
 }
Пример #4
0
        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();
        }