Пример #1
0
 private void btnEditarUsuario_Click(object sender, RoutedEventArgs e)
 {
     if (gvActivos.SelectedItem == null)
     {
         modNuevoU frm = new modNuevoU();
         frm.ShowDialog();
     }
     else
     {
         modUsuario frm = new modUsuario();
         frm.borde       = borde;
         frm.anterior    = this;
         frm.modificar   = true;
         borde.Child     = frm;
         frm.DataContext = gvActivos.SelectedItem;
     }
 }
Пример #2
0
        private void btnNuevoUsuario_Click(object sender, RoutedEventArgs e)
        {
            modNuevoU frm = new modNuevoU();

            frm.ShowDialog();
        }