Ejemplo n.º 1
0
        private void Button_Eliminar(object sender, RoutedEventArgs e)
        {
            EliminarProducto ec = new EliminarProducto();

            ec.Show();
            Close();
        }
Ejemplo n.º 2
0
        private void borrar_Click(object sender, RoutedEventArgs e)
        {
            EliminarProducto ep = new EliminarProducto();

            ep.Show();
            Close();
        }
Ejemplo n.º 3
0
        private void btnEliminar_Click(object sender, EventArgs e)
        {
            this.Visible = false;
            EliminarProducto ElP = new EliminarProducto();

            ElP.Show();
        }
Ejemplo n.º 4
0
        private void eliminarProductoToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.IsMdiContainer = true;
            EliminarProducto Eproducto = new EliminarProducto();

            Eproducto.MdiParent = this;
            Eproducto.Show();
        }
Ejemplo n.º 5
0
        public void EliminarDatosModal()
        {
            EliminarProducto fr = new EliminarProducto();

            if (gvProductos.SelectedRows.Count > 0)
            {
                fr.txtId.Text       = gvProductos.CurrentRow.Cells[0].Value.ToString();
                fr.txtNombre.Text   = gvProductos.CurrentRow.Cells[1].Value.ToString();
                fr.txtCodigo.Text   = gvProductos.CurrentRow.Cells[2].Value.ToString();
                fr.txtPrecio.Text   = gvProductos.CurrentRow.Cells[3].Value.ToString();
                fr.txtStock.Text    = gvProductos.CurrentRow.Cells[4].Value.ToString();
                fr.cbProveedor.Text = gvProductos.CurrentRow.Cells[5].Value.ToString();
                fr.txtEstado.Text   = gvProductos.CurrentRow.Cells[6].Value.ToString();
                fr.ShowDialog();
            }
            else
            {
                MessageBox.Show("Debe seleccionar al menos un dato");
            }
        }