Exemple #1
0
        public void ShowTeam(object sender, EventArgs e)
        {
            Button     btn      = (Button)sender;
            string     s        = btn.Content.ToString();
            TeamWindow teamform = new TeamWindow(s);

            teamform.Show();
        }
Exemple #2
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            Team Add_team = new Team(txtbxTeamName.Text, txtbxDescrip.Text);

            NewTeam(Add_team.Name, Add_team.Description);
            SampleData.Teams.Add(Add_team);

            this.Hide();
            TeamWindow w = new TeamWindow(txtbxTeamName.Text);

            w.Show();
        }