Exemplo n.º 1
0
        private void BtnEditCharacteristics_Click(object sender, RoutedEventArgs e)
        {
            try

            {
                if (ListViewGK.SelectedItem is FootDev2.AppData.ViewGkCharacteristics gkchara)
                {
                    VarIdCharacteristics = gkchara.IdPlaToGK;
                    VarIdChara           = gkchara.IdGKChar;
                    AddGKCharacteristics addgk = new AddGKCharacteristics(ListViewGK.SelectedItem as FootDev2.AppData.ViewGkCharacteristics);
                    this.Opacity = 0.3;
                    Filter();
                    addgk.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);
            }
        }
Exemplo n.º 2
0
        private void BtnAddCharacteristics_Click(object sender, RoutedEventArgs e)
        {
            AddGKCharacteristics addgk = new AddGKCharacteristics();

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