Пример #1
0
        protected override void DrawContents(object canvas)
        {
            base.DrawContents(canvas);

            if (!string.IsNullOrEmpty(Image) && (m_checked || m_animating))
            {
                m_image.Draw(Image);
            }
        }
Пример #2
0
        protected override void DrawContents(object canvas)
        {
            base.DrawContents(canvas);

            if (m_image != null && (Checked || m_animating))
            {
                m_image.Draw(canvas);
            }
        }
Пример #3
0
        protected override void DrawContents(object canvas)
        {
            base.DrawContents(canvas);

            if (!string.IsNullOrEmpty(Image))
            {
                m_image.Draw(canvas);
            }

            if (!string.IsNullOrEmpty(Text))
            {
                m_label.Draw(canvas);
            }
        }