Пример #1
0
        public void CopyFrom(ControlStyle sctl)
        {
            if (sctl == null)
            {
                return;
            }
            ForeColor  = sctl.ForeColor;
            BackColor  = sctl.BackColor;
            FrameColor = sctl.FrameColor;
            BackImage  = sctl.BackImage;
            glMode     = sctl.glMode;

            SubImgCount          = sctl.SubImgCount;
            PressedColor         = sctl.PressedColor;
            CheckedColor         = sctl.CheckedColor;
            DisabledColor        = sctl.DisabledColor;
            HoverColor           = sctl.HoverColor;
            PressedSize          = sctl.PressedSize;
            HoverSize            = sctl.HoverSize;
            BgndImageName        = sctl.BgndImageName;
            PanelPad             = new ControlPad();
            PanelPad.Left        = sctl.PanelPad.Left;
            PanelPad.Right       = sctl.PanelPad.Right;
            PanelPad.Top         = sctl.PanelPad.Top;
            PanelPad.Bottom      = sctl.PanelPad.Bottom;
            applySubControls     = sctl.applySubControls;
            applyWindowsControls = sctl.applyWindowsControls;
            CheckedImage         = sctl.CheckedImage;
        }
Пример #2
0
 public virtual void SetDefault()
 {
     ForeColor        = Color.White;
     BackColor        = Color.RoyalBlue;
     FrameColor       = Color.Navy;
     CheckedColor     = Color.Orange;
     PressedColor     = Color.White;
     HoverColor       = Color.White;
     PressedSize      = 100;
     HoverSize        = 100;
     DisabledColor    = Color.FromArgb(60, 255, 255, 255);
     SubImgCount      = 1;
     glMode           = false;
     BgndImageName    = null;
     PanelPad         = new ControlPad();
     PanelPad.Left    = PanelPad.Right = PanelPad.Top = PanelPad.Bottom = 10;
     applySubControls = true;
 }
Пример #3
0
        public void CopyFrom(ControlStyle sctl)
        {
            if (sctl == null)
                return;
            ForeColor = sctl.ForeColor;
            BackColor = sctl.BackColor;
            FrameColor = sctl.FrameColor;
            BackImage = sctl.BackImage;
            glMode = sctl.glMode;

            SubImgCount = sctl.SubImgCount;
            PressedColor = sctl.PressedColor;
            CheckedColor = sctl.CheckedColor;
            DisabledColor = sctl.DisabledColor;
            HoverColor = sctl.HoverColor;
            PressedSize = sctl.PressedSize;
            HoverSize = sctl.HoverSize;
            BgndImageName = sctl.BgndImageName;
            PanelPad = new ControlPad();
            PanelPad.Left = sctl.PanelPad.Left;
            PanelPad.Right = sctl.PanelPad.Right; 
            PanelPad.Top = sctl.PanelPad.Top;
            PanelPad.Bottom = sctl.PanelPad.Bottom;
            applySubControls = sctl.applySubControls;
            applyWindowsControls = sctl.applyWindowsControls;
            CheckedImage = sctl.CheckedImage;
        }
Пример #4
0
 public virtual void SetDefault()
 {
     ForeColor = Color.White;
     BackColor = Color.RoyalBlue;
     FrameColor = Color.Navy;
     CheckedColor = Color.Orange;
     PressedColor = Color.White;
     HoverColor = Color.White;
     PressedSize = 100;
     HoverSize = 100;
     DisabledColor = Color.FromArgb(60, 255, 255, 255);
     SubImgCount = 1;
     glMode = false;
     BgndImageName = null;
     PanelPad = new ControlPad();
     PanelPad.Left = PanelPad.Right = PanelPad.Top = PanelPad.Bottom = 10;
     applySubControls = true;
     applyWindowsControls = false;
 }