예제 #1
0
        private async void TeamChoser_Load(object sender, EventArgs e)
        {
            try
            {
                savedTeam = Repo.DAL.AppSave.TeamLoad();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
            if (matches == null && savedTeam.country == "none")
            {
                await DataLoad();
            }
            else if (matches == null && savedTeam.country != "none")
            {
                await DataLoad();

                string      country = savedTeam.country;
                string      code    = savedTeam.code;
                TeamDetails td      = new TeamDetails(matches, country, code, timovi, savedTeam);
                td.Show();
                this.Close();
            }
            else
            {
                LoadTeams();
            }
        }
예제 #2
0
        private void cmbTeamChoser_SelectedIndexChanged(object sender, EventArgs e)
        {
            string      country = ((Team)cmbTeamChoser.SelectedItem).country.ToString();
            string      code    = ((Team)cmbTeamChoser.SelectedItem).code.ToString();
            TeamDetails td      = new TeamDetails(matches, country, code, timovi, savedTeam);

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