private void btnAceptar_Click(object sender, RoutedEventArgs e)
        {
            try
            {
                ventanaInsertar objPersona = new ventanaInsertar();

                tomo    = Convert.ToInt32(tbxTomo.Text);
                pagina  = Convert.ToInt32(tbxPagina.Text);
                seccion = Convert.ToInt32(tbxSeccion.Text);

                this.Hide();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
예제 #2
0
 private void MiAgregar_Click(object sender, RoutedEventArgs e)
 {
     objInsertar = new ventanaInsertar();
     objInsertar.ShowDialog();
 }