Esempio n. 1
0
        public string ReturnWinner(string first, string second)
        {
            var detection = new WinnerDetection("Winner detection", "Chose winner", first, second);
            var result    = detection.ShowDialog();

            if (result == true)
            {
                return(first);
            }

            return(second);
        }
        public Side ReturnWinner(Participant meeting)
        {
            var detection = new WinnerDetection("Winner detection", "Chose winner", meeting.Left.Name, meeting.Right.Name);
            var result    = detection.ShowDialog();

            if (result == true)
            {
                return(Side.Left);
            }

            return(Side.Right);
        }