private void button6_Click(object sender, EventArgs e) { global::ClassLibrary2.ClsProduct x = new ClassLibrary2.ClsProduct(); this.dataGridView1.DataSource = x.GetProductsByCategoryID(comboBox1.SelectedIndex + 1); }
private void button4_Click(object sender, EventArgs e) { global::ClassLibrary2.ClsProduct x = new ClassLibrary2.ClsProduct(); this.dataGridView1.DataSource = x.GetProducts(); }