public FormStyle()
 {
     NormalState    = new SerializableImage();
     MinimizeButton = new FormButtonStyle();
     MaximizeButton = new FormButtonStyle();
     CloseButton    = new FormButtonStyle();
     RestoreButton  = new FormButtonStyle();
     HelpButton     = new FormButtonStyle();
 }
Example #2
0
        private TreeNode MapFormButtonStyleToTreeNode(FormButtonStyle formButtonStyle, string propertyName)
        {
            TreeNode node = new TreeNode(propertyName);

            node.Tag = formButtonStyle;
            node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.NormalState, FormButtonStyleProperty.NormalState));
            node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.HoverState, FormButtonStyleProperty.HoverState));
            node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.ActiveState, FormButtonStyleProperty.ActiveState));
            node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.DisabledState, FormButtonStyleProperty.DisabledState));
            return(node);
        }
 private TreeNode MapFormButtonStyleToTreeNode(FormButtonStyle formButtonStyle, string propertyName)
 {
     TreeNode node = new TreeNode(propertyName);
     node.Tag = formButtonStyle;
     node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.NormalState, FormButtonStyleProperty.NormalState));
     node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.HoverState, FormButtonStyleProperty.HoverState));
     node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.ActiveState, FormButtonStyleProperty.ActiveState));
     node.Nodes.Add(MapSerializableImageToTreeNode(formButtonStyle.DisabledState, FormButtonStyleProperty.DisabledState));
     return node;
 }
Example #4
0
        public FormStyle()
        {
            NormalState = new SerializableImage();
            MinimizeButton = new FormButtonStyle();
		    MaximizeButton = new FormButtonStyle();
		    CloseButton = new FormButtonStyle();
		    RestoreButton = new FormButtonStyle();
		    HelpButton = new FormButtonStyle();
        }