private void StartProcess(Object sender, EventArgs e)
 {
     Dota2FeedProcessor.GetAndProcessEvents();
     Elo elo_ = new Elo();
     elo_.RecalculateRankingsFast();
     Close();
 }
예제 #2
0
        static void Main(string[] args)
        {
            int operation = 1;

            BOBase.SetConnectionString("Server=(local);Database=DotaELO;Trusted_Connection=True;");
            Elo elo = new Elo();
            if (operation == 0)
            {
                Dota2FeedProcessor.GetAndProcessEvents();
            }
            if (operation == 1)
            {
                Console.WriteLine("ELO Calculation Section");
                elo.RecalculateRankingsFast();
            }
            if (operation == 2)
            {
                double amountToBet = 0;
                Console.WriteLine(elo.CalculateBet(41, 44, (3.06 + 2.19 + 2.07 + 1.9), .76, 3, out amountToBet));
                Console.WriteLine(amountToBet);
                Console.Read();
            }
        }