private void Setup() { string[] config = FormSetup.Load(); Debug.WriteLine(config.Length); if (config.Length == 1) { StartPage form = new StartPage(); form.ShowDialog(); form.BringToFront(); Hide(); } else if (config.Length == 2) { FavoriteRepresentationPage form = new FavoriteRepresentationPage(); form.ShowDialog(); form.BringToFront(); Hide(); } else { FIFACODE = config[2]; Debug.WriteLine(URL + FIFACODE); //lbTest.Text = Repository.GetStartingEleven(URL + FIFACODE); } }
private void btnWomen_Click(object sender, EventArgs e) { FormSetup.Save(GetLocalization(), "WOMEN"); var form = new FavoriteRepresentationPage(); form.ShowDialog(); form.BringToFront(); Hide(); }