Exemplo n.º 1
0
        private void btn_add_Click(object sender, EventArgs e)
        {
            FormWarehousesAdd form = new FormWarehousesAdd();

            form.ShowDialog();

            updateWarehouseTable();
        }
Exemplo n.º 2
0
        private void btn_change_Click(object sender, EventArgs e)
        {
            int       PK_Warehouse      = Convert.ToInt32(dgv_warehouses.SelectedRows[0].Cells[2].Value);
            Warehouse changingWarehouse = Program.db.Warehouses.Find(PK_Warehouse);

            if (changingWarehouse != null)
            {
                FormWarehousesAdd form = new FormWarehousesAdd(changingWarehouse);
                form.ShowDialog();

                updateWarehouseTable();
            }
        }