Exemple #1
0
        private void BtnNuevo_Click(object sender, RoutedEventArgs e)
        {
            SubCliente subCliente = new SubCliente();

            subCliente.TipoAccion = 0;
            subCliente.ShowDialog();
            MostrarCliente();
        }
Exemple #2
0
        private void BtnActualizar_Click(object sender, RoutedEventArgs e)
        {
            if (dgCliente.SelectedItem != null)
            {
                object     item       = dgCliente.SelectedItem;
                string     id         = (dgCliente.SelectedCells[7].Column.GetCellContent(item) as TextBlock).Text;
                SubCliente subCliente = new SubCliente();
                subCliente.IdCliente = id;
                subCliente.Genero    = (dgCliente.SelectedCells[5].Column.GetCellContent(item) as TextBlock).Text;
                subCliente.Cedula    = (dgCliente.SelectedCells[0].Column.GetCellContent(item) as TextBlock).Text;
                subCliente.Nombre    = (dgCliente.SelectedCells[1].Column.GetCellContent(item) as TextBlock).Text;
                subCliente.Apellido  = (dgCliente.SelectedCells[2].Column.GetCellContent(item) as TextBlock).Text;
                subCliente.Direccion = (dgCliente.SelectedCells[3].Column.GetCellContent(item) as TextBlock).Text;
                subCliente.Telefono  = (dgCliente.SelectedCells[4].Column.GetCellContent(item) as TextBlock).Text;

                subCliente.TipoAccion = 1;
                subCliente.ShowDialog();
                MostrarCliente();
                //MessageBox.Show(id.ToString());
            }
        }
Exemple #3
0
        private void BtnMantenimiento_Click(object sender, RoutedEventArgs e)
        {
            SubCliente subCliente = new SubCliente();

            subCliente.ShowDialog();
        }