/// <summary> /// /// </summary> public TmpltBaseTreeNode(AnyXmlElement element) { Element = element; /// 调用Jeelu.ResourcesReader管理控件所使用的资源 ResourcesReader.SetObjectResourcesHelper(this); this.SetImageList(); this._imageList.ColorDepth = ColorDepth.Depth32Bit; this.SetImage(); }
public TmpltDrawPanel(DesignPanel tDPanel, int width, int height, Image backImage) : base(tDPanel, width, height, backImage) { ResourcesReader.SetObjectResourcesHelper(this); InitializeComponent(); //双缓存 this.DoubleBuffered = true; this.SetStyle(ControlStyles.AllPaintingInWmPaint, true); this.SetStyle(ControlStyles.UserPaint, true); _lockedImg = GetImage("lockedImage"); _selectedImg = GetImage("selectedImage"); _hasSnip = GetImage("hasSnipImage"); _hasContentSnip = GetImage("hasContentSnipImage"); }
protected SnipPagePart(SnipPageDesigner designer) { ResourcesReader.SetObjectResourcesHelper(this); _designer = designer; Text = ""; Padding = new System.Windows.Forms.Padding(0); Index = -1; HtmlTagName = "div"; FactLines = 2; _cssSection = new CssSection(); PartType = SnipPartType.Static; ChildParts = new SnipPagePartCollection(this); _classPartContainer = new ClassPartContainer(this); Random random = new Random(); //BackColor = System.Drawing.Color.FromArgb(random.Next(0, 256), random.Next(0, 256), random.Next(0, 256)); _cssSection.Properties["width"] = "100%"; _cssSection.Properties["height"] = "20px"; _cssSection.Properties["float"] = "left"; BoxIconXOffset = 0; BoxIconYOffset = -8; BoxIconSize = new Size(16, 16); }
public ClassPartContainer(IPartContainer parentContainer) { ResourcesReader.SetObjectResourcesHelper(this); PartContainer = parentContainer; DisplaySpace = SoftwareOption.SnipDesigner.DisplaySpace; BoxFillColor = SoftwareOption.SnipDesigner.BoxFillColor; TextColor = SoftwareOption.SnipDesigner.TextColor; SelectedPenColor = SoftwareOption.SnipDesigner.SelectedPenColor; ItemPenColor = SoftwareOption.SnipDesigner.ItemPenColor; BoxPenColor = SoftwareOption.SnipDesigner.BoxPenColor; StaticPartColor = SoftwareOption.SnipDesigner.StaticPartColor; NavagationPartColor = SoftwareOption.SnipDesigner.NavagationPartColor; AttributePartColor = SoftwareOption.SnipDesigner.AttributePartColor; PathPartColor = SoftwareOption.SnipDesigner.PathPartColor; PathPartForeColor = SoftwareOption.SnipDesigner.PathPartForeColor; AttributePartForeColor = SoftwareOption.SnipDesigner.AttributePartForeColor; NavagationPartForeColor = SoftwareOption.SnipDesigner.NavagationPartForeColor; StaticPartForeColor = SoftwareOption.SnipDesigner.StaticPartForeColor; BoxForeColor = SoftwareOption.SnipDesigner.BoxForeColor; PieRadii = SoftwareOption.SnipDesigner.PieRadii; //需要添加到选项里 UsingLinearGradient = SoftwareOption.SnipDesigner.UsingLinearGradient; }