Exemplo n.º 1
0
        private void btnAgregarModeloArticuloFiltro_Click(object sender, RoutedEventArgs e)
        {
            DialogModeloArticuloMVVM diag = new DialogModeloArticuloMVVM(invEnt, null, false);

            diag.ShowDialog();

            if ((bool)diag.DialogResult)
            {
                dgModeloArticulo.Items.Refresh();
            }
        }
Exemplo n.º 2
0
        //Anyadir modelo de articulo
        private void anyadirModeloArt_ContextMenu_Click(object sender, RoutedEventArgs e)
        {
            DialogModeloArticuloMVVM diag = new DialogModeloArticuloMVVM(invEnt, null, false);

            diag.ShowDialog();

            if ((bool)diag.DialogResult)
            {
                dgModeloArticulo.Items.Refresh();
            }
        }
Exemplo n.º 3
0
        //edicion mediante boton
        private void btnEditarModeloArticuloFiltro_Click(object sender, RoutedEventArgs e)
        {
            //comprobar si esta a null
            if (dgModeloArticulo.SelectedItem != null)
            {
                DialogModeloArticuloMVVM diag = new DialogModeloArticuloMVVM(invEnt, (modeloarticulo)(dgModeloArticulo.SelectedItem), true);
                diag.ShowDialog();

                //si el dialog result se ha cerrado correctamente
                if ((bool)diag.DialogResult)
                {
                    dgModeloArticulo.Items.Refresh();
                }
            }
            else
            {
                MessageBox.Show("Tienes que seleccionar un modelo de Articulo", "GESTION INVENTARIO", MessageBoxButton.OK, MessageBoxImage.Warning);
            }
        }
Exemplo n.º 4
0
        private void btnModArtNuevoMVVM_Click(object sender, RoutedEventArgs e)
        {
            DialogModeloArticuloMVVM diag = new DialogModeloArticuloMVVM(invEnt);

            diag.ShowDialog();
        }
        //Modelos articulo MVVM:
        //Anyadir modelo de articulo MVVM
        private void botonAnyadirModelosArticulosMVVM_Click(object sender, RoutedEventArgs e)
        {
            DialogModeloArticuloMVVM diag = new DialogModeloArticuloMVVM(invEnt, null, false);

            diag.ShowDialog();
        }