Exemple #1
0
        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);
        }
Exemple #2
0
 private void editBtn_Click(object sender, EventArgs e)
 {
     EditPriceForItem edit = new EditPriceForItem();
     edit.editPrice(enterPrice, comboBox1,selectAmount);
 }
Exemple #3
0
 private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     EditPriceForItem edit = new EditPriceForItem();
     edit.selectFromComboBox(enterPrice, comboBox1, selectAmount);
 }