public Form1() { InitializeComponent(); AddProduct = new AddProduct(MessageContainer, dataGridView1); UpdateViews = new UpdateGridView(dataGridView1, dataGridView2); ShowMessage = new ShowMessages(MessageContainer); UpdateGridView.UpdateGridViews(); CheckForIllegalCrossThreadCalls = false; EditPriceForItem edit = new EditPriceForItem(comboBox1); //DeleteProduct delete = new DeleteProduct(dataGridView1); // delete.update(dataGridView1); }
private void editBtn_Click(object sender, EventArgs e) { EditPriceForItem edit = new EditPriceForItem(); edit.editPrice(enterPrice, comboBox1,selectAmount); }
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) { EditPriceForItem edit = new EditPriceForItem(); edit.selectFromComboBox(enterPrice, comboBox1, selectAmount); }