public frmSieMens() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); }
protected override void OnMouseUp(MouseEventArgs e) { base.OnMouseUp(e); if (e.Button == MouseButtons.Left) { SystemButtonManager.ProcessMouseOperate(e.Location, MouseOperate.Up); } }
protected override void Dispose(bool disposing) { base.Dispose(disposing); if (disposing) { if (_systemButtonManager != null) { _systemButtonManager.Dispose(); _systemButtonManager = null; _formBkg.Dispose(); _formBkg = null; _fringe.Dispose(); _fringe = null; } } }
public frmPrintf() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); //克隆选中的行 //for (int i = 0; i < rowColl.Count; i++) //{ // DataRow dataRow = (rowColl[i].DataBoundItem as DataRowView).Row; // gridSelectDT.ImportRow(dataRow); //} //this.dgvPrintf.DataSource = gridSelectDT; dgvPrinter = new DGVPrinter(); dgvPrinter.SourceDGV = dgvPrintf; }
protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; e.Graphics.InterpolationMode = InterpolationMode.HighQualityBicubic; //draw BackgroundImage e.Graphics.DrawImage(_formBkg, ClientRectangle, new Rectangle(0, 0, _formBkg.Width, _formBkg.Height), GraphicsUnit.Pixel); //draw form main part RenderHelper.DrawFromAlphaMainPart(this, e.Graphics); //draw system buttons SystemButtonManager.DrawSystemButtons(e.Graphics); //draw fringe RenderHelper.DrawFormFringe(this, e.Graphics, _fringe, Radius); //draw icon if (Icon != null && ShowIcon) { e.Graphics.DrawIcon(Icon, IconRect); } //draw text if (Text.Length != 0) { TextRenderer.DrawText( e.Graphics, Text, Font, TextRect, Color.White, TextFormatFlags.SingleLine | TextFormatFlags.EndEllipsis); } }
protected override void OnMouseLeave(EventArgs e) { base.OnMouseLeave(e); SystemButtonManager.ProcessMouseOperate(Point.Empty, MouseOperate.Leave); }
protected override void OnMouseMove(MouseEventArgs e) { base.OnMouseMove(e); SystemButtonManager.ProcessMouseOperate(e.Location, MouseOperate.Move); }
public frmRightChange() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); }
public frmAutoAlter() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); }
public ShowDataTable showdatatable; //【2】申明一个委托对象 public frmCurrentLib() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); }
public FormMode() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); }
public ShowDataTable showdatatable; //【2】申明一个委托对象 public frmEmptyRecord() { InitializeComponent(); FormExIni(); _systemButtonManager = new SystemButtonManager(this); }