示例#1
0
        public void Draw()
        {
            switch (Status)
            {
            case CardStatus.NoCard:
                Pbx.Image = null;
                Activable = false;
                Selected  = false;
                TtAyuda.SetToolTip(Pbx, "");
                SetHelp(IconChar.None, "");
                break;

            case CardStatus.FaceUp:
                Pbx.Image = Development.GetImage();
                SetHelp(IconChar.None, "");
                TtAyuda.SetToolTip(Pbx, Development.ToStringWithPrice());
                break;

            case CardStatus.FaceDown:
                Pbx.Image = NamedPath.DevelopmentBack(Development.Level).GetImage();
                TtAyuda.SetToolTip(Pbx, "");
                SetHelp(IconChar.None, "");
                break;

            default:
                break;
            }
        }