internal override bool Cascade(Style style) { //var solidFillStyle = style as SolidFillStyle; //if (solidFillStyle == null || solidFillStyle.Id != Id) return false; //Cascade(solidFillStyle); return true; }
internal override bool Cascade(Style style) { //var hatchFill = style as HatchFill; //if (hatchFill != null && hatchFill.Id == Id) //{ // Cascade(hatchFill); // return true; //} return false; }
internal override bool Cascade(Style style) { //var linearStyle = style as LinearGradientFill; //if (linearStyle != null && linearStyle.Id == Id) //{ // Cascade(linearStyle); // return true; //} return false; }
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; }
public StyleWrapper(Style style) : base(style) { Style = style; }
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; }
internal override bool Cascade(Style style) { foreach (var node in Nodes) node.Cascade(style); return false; }
internal override bool Cascade(Style style) { if (LabelBox != null) LabelBox.Cascade(style); return _style.Cascade(style); }
internal override bool Cascade(Style style) { var lineStyle = style as LineStyle; if (lineStyle == null /*|| lineStyle.Id != Id*/) return false; Cascade(lineStyle); return true; }
internal override bool Cascade(Style style) { //var pointStyle = style as PointStyle; //if (pointStyle == null || pointStyle.Id != Id) return false; //Cascade(pointStyle); return true; }
internal override bool Cascade(Style style) { //var textStyle = style as TextStyle; //if (textStyle == null || textStyle.Id != Id) return false; //Cascade(textStyle); return true; }