Esempio n. 1
0
        public void LoadHost()
        {
            string       file  = ConfigurationManager.AppSettings.Get("AdminLocation");
            int          sheet = Convert.ToInt32(ConfigurationManager.AppSettings.Get("HostSheet"));
            ExcelManager em    = new ExcelManager();

            Host = new Player("host", "zb", em.ReadGroupPhase(file, sheet, new ExcelReadSettings()), em.readKnockout(file, sheet, new ExcelReadSettings()), em.readBonus(file, sheet));
        }
Esempio n. 2
0
        private void btnFile_Click(object sender, EventArgs e)
        {
            string            file     = tbFile.Text;
            ExcelManager      em       = new ExcelManager();
            ExcelReadSettings settings = new ExcelReadSettings();
            Player            player   = new Player(tbName.Text, tbTown.Text, em.ReadGroupPhase(file, 1, settings), em.readKnockout(file, 1, settings), em.readBonus(file, 1));

            MessageBox.Show("player sucesfully created!");
            loadPlayer(player);
        }