bpanelstyle.cs
来自「破解的飞信源代码」· CS 代码 · 共 102 行
CS
102 行
namespace Imps.Client.Pc.BizControls
{
using Imps.Client.Pc.Theme;
using Imps.Client.Pc.XControlStyle;
using System;
using System.Drawing;
using System.Xml;
public class BPanelStyle : StyleBase
{
private Color backColor = Color.White;
private Image backgroundImage;
private Color borderColor = Color.FromArgb(0xa4, 170, 220);
private Color borderInsideColor = Color.White;
private int borderInsideWidth = 1;
private int borderWidth = 1;
protected override void LoadStyle(XmlElement elem)
{
ThemeManager.SetColor(elem, ref this.borderColor, "BorderColor");
ThemeManager.SetColor(elem, ref this.borderInsideColor, "BorderInsideColor");
ThemeManager.SetColor(elem, ref this.backColor, "BackColor");
ThemeManager.SetInt(elem, ref this.borderInsideWidth, "BorderInsideWidth", 1);
ThemeManager.SetInt(elem, ref this.borderWidth, "BorderWidth", 1);
ThemeManager.SetImage(elem, ref this.backgroundImage, "BackgroundImage");
}
public Color BackColor
{
get
{
return this.backColor;
}
set
{
this.backColor = value;
}
}
public Image BackgroundImage
{
get
{
return this.backgroundImage;
}
set
{
this.backgroundImage = value;
}
}
public Color BorderColor
{
get
{
return this.borderColor;
}
set
{
this.borderColor = value;
}
}
public Color BorderInsideColor
{
get
{
return this.borderInsideColor;
}
set
{
this.borderInsideColor = value;
}
}
public int BorderInsideWidth
{
get
{
return this.borderInsideWidth;
}
set
{
this.borderInsideWidth = value;
}
}
public int BorderWidth
{
get
{
return this.borderWidth;
}
set
{
this.borderWidth = value;
}
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?