Ejemplo n.º 1
0
        private void BtnAddTraining_Click(object sender, RoutedEventArgs e)
        {
            AddIndTraining addIndTraining = new AddIndTraining();

            this.Opacity = 0.3;
            Filter();
            addIndTraining.ShowDialog();
            Filter();
            this.Opacity = 1;
        }
Ejemplo n.º 2
0
 private void BtnEditTraining_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (ListViewIndTrainings.SelectedItem is ViewIndTrainings indTraining)
         {
             VarIdTraining = indTraining.Idtraining;
             AddIndTraining addTeamTraining = new AddIndTraining(ListViewIndTrainings.SelectedItem as ViewIndTrainings);
             this.Opacity = 0.3;
             Filter();
             addTeamTraining.ShowDialog();
             Filter();
             this.Opacity = 1;
         }
         else
         {
             MessageBox.Show("You did not select player", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
         }
     }
     catch
     {
         MessageBox.Show("Error", "Error", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }