Exemple #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;
        }
Exemple #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;
		}
Exemple #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;
		}
Exemple #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;
		}
Exemple #5
0
        public StyleWrapper(Style style)
            : base(style)
		{
            Style = style;
		}
Exemple #6
0
		internal override bool Cascade(Style style)
		{
            return Style.Cascade(style);
		}
        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;
		}
Exemple #8
0
 internal override bool Cascade(Style style)
 {
     foreach (var node in Nodes)
         node.Cascade(style);
     return false;
 }
Exemple #9
0
        internal override bool Cascade(Style style)
        {
            if (LabelBox != null)
                LabelBox.Cascade(style);

            return _style.Cascade(style);
        }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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;
        }