Beispiel #1
0
        private bool DoesOngoingGameExist(string name1, string name2, string name3)
        {
            Classic g        = new Classic();
            bool    isit     = false;
            bool    ongoing1 = g.CheckOngoing(name1);
            bool    ongoing2 = g.CheckOngoing(name2);

            if (cbThree.IsChecked == true)
            {
                bool ongoing3 = g.CheckOngoing(name3);
                if (ongoing1 == true || ongoing2 == true || ongoing3 == true)
                {
                    isit = true;
                }
            }
            else
            {
                if (ongoing1 == true || ongoing2 == true)
                {
                    isit = true;
                }
            }
            return(isit);
        }