예제 #1
0
        //버튼 컬러
        public Color ToColor(CheckedBtn ch)
        {
            switch (ch)
            {
            case CheckedBtn.NOPE:
                return(Color.DimGray);

            case CheckedBtn.CHECK:
                return(Color.Crimson);

            default:
                return(Color.White);
            }
        }
예제 #2
0
        //클릭된 버튼 답 체크
        public CheckedBtn isValid(String btn, CheckedBtn cb)
        {
            int index = Convert.ToInt32(btn.Substring(6));

            if (CorrectData[index] == (int)cb)
            {
                userAnswer[index] = cb;
            }
            else
            {
                userAnswer[index] = CheckedBtn.WRONG;
            }

            return(userAnswer[index]);
        }