Example #1
0
        private void TileAdmCon_Click(object sender, RoutedEventArgs e)
        {
            AdminContrato w = new AdminContrato();

            w.Show();
            this.Hide();
            if (Contraste)
            {
                OnContraste(w);
                w.Contraste = true;
            }
        }
Example #2
0
 private async void BtnCargar_Click(object sender, RoutedEventArgs e)
 {
     if (dgListaContratos.SelectedIndex > -1)
     {
         Contrato con  = new Contrato();
         var      data = dgListaContratos.SelectedItem;
         con.Numero = (dgListaContratos.SelectedCells[0].Column.GetCellContent(data) as TextBlock).Text;
         MainWindow    mw = new MainWindow();
         AdminContrato w  = new AdminContrato();
         w.CargarContrato(con);
         w.Show();
         this.Hide();
         if (Contraste)
         {
             mw.OnContraste(w);
             w.Contraste = true;
         }
     }
     else
     {
         MessageDialogResult result =
             await this.ShowMessageAsync("AtenciĆ³n", "Seleccione una fila", MessageDialogStyle.Affirmative);
     }
 }