using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Data; using System.Linq; using System.Text; using System.Windows.Forms; namespace POSV.Component { [ToolboxItem(true)] public partial class CheckoutControl : BaseUserControl { public CheckoutControl() { this.SetStyle(ControlStyles.DoubleBuffer , true); this.SetStyle(ControlStyles.AllPaintingInWmPaint , true); this.SetStyle(ControlStyles.ResizeRedraw , true); this.SetStyle(ControlStyles.UserPaint , true); this.SetStyle(ControlStyles.SupportsTransparentBackColor , true); InitializeComponent(); this.BackColor = Color.Transparent; } private string _text = "已结账"; /// /// 窗口标题 /// public override string Text { set { this._text = value; this.mainPanel.Text = this._text; this.mainPanel.Invalidate(); } get { return this._text; } } } }