private void BtnEditCharacteristics_Click(object sender, RoutedEventArgs e)
        {
            try

            {
                if (ListViewDF.SelectedItem is FootDev2.AppData.ViewDFCharacteristics dfchara)
                {
                    VarIdCharacteristics = dfchara.IdPlaToDF;
                    VarIdChara           = dfchara.IdDFChar;
                    AddDFCharacteristics adddf = new AddDFCharacteristics(ListViewDF.SelectedItem as FootDev2.AppData.ViewDFCharacteristics);
                    this.Opacity = 0.3;
                    Filter();
                    adddf.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);
            }
        }
        private void BtnAddCharacteristics_Click(object sender, RoutedEventArgs e)
        {
            AddDFCharacteristics adddf = new AddDFCharacteristics();

            this.Opacity = 0.3;
            Filter();
            adddf.ShowDialog();
            Filter();
            this.Opacity = 1;
        }