private void button_Click(object sender, RoutedEventArgs e)
        {
            ChampionshipTeamsDatagrid cd = new ChampionshipTeamsDatagrid();

            cd.Show();
            this.Close();
        }
        private void button_Click(object sender, RoutedEventArgs e)
        {
            if (textBox.Text == "" || places.Text == "")
            {
                MessageBox.Show("Please fill required data !");
            }
            else
            {
                name  = textBox.Text;
                place = places.Text;

                for (int i = 0; i < Containers.championship_list.Count; i++)
                {
                    if (Containers.championship_list[i].getName() == textBox.Text)
                    {
                        available = true;
                        ChampionshipTeamsDatagrid ct = new ChampionshipTeamsDatagrid();
                        ct.Show();
                        this.Close();
                    }
                }
                if (available == false)
                {
                    MessageBox.Show("Championship not available !");
                }
            }
        }
        private void button_Click(object sender, RoutedEventArgs e)
        {
            List <Team> filtered = new List <Team>();

            for (int i = 0; i < Containers.championship_list.Count(); i++)
            {
                if (Containers.championship_list[i].getName() == textBox.Text && Containers.championship_list[i].GetPlace() == textBox1.Text)
                {
                    // filtered = Containers.championship_list[i].teamList;
                }
            }
            ChampionshipTeamsDatagrid cd = new ChampionshipTeamsDatagrid();

            cd.Show();
            this.Close();
        }