示例#1
0
        private void buttonOpenNewProductWindow_Click(object sender, EventArgs e)
        {
            Products_NewRegister newRegisterWindow = new Products_NewRegister(Guid.Parse("00000000-0000-0000-0000-000000000000"));

            newRegisterWindow.ShowDialog();

            //Refrescar
            var lista_productos = controller.consultarProductos();

            dataGridViewProducts.DataSource = lista_productos;
        }
示例#2
0
        private void buttonEditProduct_Click(object sender, EventArgs e)
        {
            Guid id = GetId();

            if (id != null)
            {
                Products_NewRegister editRegisterWindow = new Products_NewRegister(id);
                editRegisterWindow.ShowDialog();

                //Refrescar
                var lista_productos = controller.consultarProductos();
                dataGridViewProducts.DataSource = lista_productos;
            }
        }