Exemplo n.º 1
0
        private void BtnAddTest_Click(object sender, RoutedEventArgs e)
        {
            AddTest addtest = new AddTest();

            this.Opacity = 0.3;
            Filter();
            addtest.ShowDialog();
            Filter();
            this.Opacity = 1;
        }
Exemplo n.º 2
0
 private void BtnEditTest_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         if (ListViewExe.SelectedItem is ViewExcForTest test)
         {
             VarIdTraining = test.IdExerciseForTest;
             AddTest addtest = new AddTest(ListViewExe.SelectedItem as ViewExcForTest);
             this.Opacity = 0.3;
             Filter();
             addtest.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);
     }
 }