示例#1
0
 public CaptionButtonSkin(string key)
 {
     _key          = key;
     NormalState   = new SerializableImage();
     ActiveState   = new SerializableImage();
     HoverState    = new SerializableImage();
     DisabledState = new SerializableImage();
 }
示例#2
0
        public FormSkin(bool defaultButtons)
        {
            NormalState = new SerializableImage();

            if (!defaultButtons)
            {
                return;
            }

            AddCaptionButtonSkin(new CaptionButtonSkin("MinimizeButton"));
            AddCaptionButtonSkin(new CaptionButtonSkin("MaximizeButton"));
            AddCaptionButtonSkin(new CaptionButtonSkin("CloseButton"));
            AddCaptionButtonSkin(new CaptionButtonSkin("RestoreButton"));
            AddCaptionButtonSkin(new CaptionButtonSkin("HelpButton"));
        }