예제 #1
0
        private void getFromSlotButtonCheckersMen(
            out CheckersMen o_RegularCheckersMen,
            out CheckersMen o_KingCheckersMen)
        {
            CheckersMen fromSlotButtonCheckerMen = m_FromSlotButton.Content.Value;

            if (fromSlotButtonCheckerMen.Type == CheckersMen.eType.Regular)
            {
                o_RegularCheckersMen = fromSlotButtonCheckerMen;
                o_KingCheckersMen    = fromSlotButtonCheckerMen.AsKing();
            }
            else
            {
                o_RegularCheckersMen = fromSlotButtonCheckerMen.AsRegular();
                o_KingCheckersMen    = fromSlotButtonCheckerMen;
            }
        }