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

            {
                if (ListViewFW.SelectedItem is FootDev2.AppData.ViewStrikerCharacteristics fwchara)
                {
                    VarIdCharacteristics = fwchara.IdPlaToFW;
                    VarIdChara           = fwchara.IdFWChar;
                    AddFWCharacteristics addfw = new AddFWCharacteristics(ListViewFW.SelectedItem as FootDev2.AppData.ViewStrikerCharacteristics);
                    this.Opacity = 0.3;
                    Filter();
                    addfw.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)
        {
            AddFWCharacteristics addfw = new AddFWCharacteristics();

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