Example #1
0
        internal override bool Cascade(Style style)
        {
            //var solidFillStyle = style as SolidFillStyle;
            //if (solidFillStyle == null || solidFillStyle.Id != Id) return false;

            //Cascade(solidFillStyle);
            return true;
        }
Example #2
0
		internal override bool Cascade(Style style)
		{
            //var hatchFill = style as HatchFill;
            //if (hatchFill != null && hatchFill.Id == Id)
            //{
            //    Cascade(hatchFill);
            //    return true;
            //}
			return false;
		}
Example #3
0
		internal override bool Cascade(Style style)
		{
            //var linearStyle = style as LinearGradientFill;
            //if (linearStyle != null && linearStyle.Id == Id)
            //{
            //    Cascade(linearStyle);
            //    return true;
            //}
			return false;
		}
Example #4
0
		internal override bool Cascade(Style style)
		{
			var lineStyle = style as LineStyle;
            if (lineStyle == null /*|| string.Compare(lineStyle.Id, Id, true) != 0*/) return false;
             
            _style.Cascade(lineStyle);
            return true;
		}
Example #5
0
        public StyleWrapper(Style style)
            : base(style)
		{
            Style = style;
		}
Example #6
0
		internal override bool Cascade(Style style)
		{
            return Style.Cascade(style);
		}
Example #7
0
        private TreeNode AddStyleNode(TreeNode parent, Style style)
        {
            if(parent == null) throw new ArgumentNullException("parent");
            if (style == null) throw new ArgumentNullException("style");

            var wrapper = new StyleWrapper(style);
            var node = parent.Nodes.Add(wrapper.Label);
            node.Tag = wrapper;
            node.Checked = style.Visible;
            node.ContextMenuStrip = cmnThemeNode;

            AttachNode(style, node);

            AddNodes(node, style.Nodes);

            return node;
		}
Example #8
0
 internal override bool Cascade(Style style)
 {
     foreach (var node in Nodes)
         node.Cascade(style);
     return false;
 }
Example #9
0
        internal override bool Cascade(Style style)
        {
            if (LabelBox != null)
                LabelBox.Cascade(style);

            return _style.Cascade(style);
        }
Example #10
0
 internal override bool Cascade(Style style)
 {
     var lineStyle = style as LineStyle;
     if (lineStyle == null /*|| lineStyle.Id != Id*/) return false;
     
     Cascade(lineStyle);
     return true;
 }
Example #11
0
 internal override bool Cascade(Style style)
 {
     //var pointStyle = style as PointStyle;
     //if (pointStyle == null || pointStyle.Id != Id) return false;
     
     //Cascade(pointStyle);
     return true;
 }
Example #12
0
        internal override bool Cascade(Style style)
        {
            //var textStyle = style as TextStyle;
            //if (textStyle == null || textStyle.Id != Id) return false;

            //Cascade(textStyle);
            return true;
        }