Exemplo n.º 1
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);

            var driver = new DriverLogic();

            log("--- 정당 목록 ----");
            var parties = driver.GetPartyData(_UseServer);

            Array.ForEach(parties, x => log(x));
            Array.ForEach(parties, x => _dt.Rows.Add(x.Id, x.Name, x.PropVoteRate, x.NumDistrictSeat));
            //_dt.Select()
            _dt.Rows.Add(0, "합계", 0m, 0m, 0m);

            log("--- 투표 결과 ----");
            var votes = driver.GetVoteData(_UseServer);

            Array.ForEach(votes, x => log(x));
        }
Exemplo n.º 2
0
        internal static Party[] LoadParty()
        {
            var driver = new DriverLogic();

            return(driver.GetPartyData(false));
        }