private void Tile_Click(object sender, System.Windows.RoutedEventArgs e)
 {
     try
     {
         CadAgente cadAgente = new CadAgente();
         cadAgente.ShowDialog();
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message);
     }
 }
        private void AgenteMenuItem_Click(object sender, RoutedEventArgs e)
        {
            CadAgente cadAgente = new CadAgente();

            cadAgente.ShowDialog();
        }