Beispiel #1
0
        public frmSieMens()
        {
            InitializeComponent();

            FormExIni();
            _systemButtonManager = new SystemButtonManager(this);
        }
Beispiel #2
0
 protected override void OnMouseUp(MouseEventArgs e)
 {
     base.OnMouseUp(e);
     if (e.Button == MouseButtons.Left)
     {
         SystemButtonManager.ProcessMouseOperate(e.Location, MouseOperate.Up);
     }
 }
Beispiel #3
0
 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;
         }
     }
 }
Beispiel #4
0
        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;
        }
Beispiel #5
0
        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);
            }
        }
Beispiel #6
0
 protected override void OnMouseLeave(EventArgs e)
 {
     base.OnMouseLeave(e);
     SystemButtonManager.ProcessMouseOperate(Point.Empty, MouseOperate.Leave);
 }
Beispiel #7
0
 protected override void OnMouseMove(MouseEventArgs e)
 {
     base.OnMouseMove(e);
     SystemButtonManager.ProcessMouseOperate(e.Location, MouseOperate.Move);
 }
Beispiel #8
0
 public frmRightChange()
 {
     InitializeComponent();
     FormExIni();
     _systemButtonManager = new SystemButtonManager(this);
 }
Beispiel #9
0
 public frmAutoAlter()
 {
     InitializeComponent();
     FormExIni();
     _systemButtonManager = new SystemButtonManager(this);
 }
Beispiel #10
0
 public ShowDataTable showdatatable;                           //【2】申明一个委托对象
 public frmCurrentLib()
 {
     InitializeComponent();
     FormExIni();
     _systemButtonManager = new SystemButtonManager(this);
 }
Beispiel #11
0
 public FormMode()
 {
     InitializeComponent();
     FormExIni();
     _systemButtonManager = new SystemButtonManager(this);
 }
Beispiel #12
0
 public ShowDataTable showdatatable;                           //【2】申明一个委托对象
 public frmEmptyRecord()
 {
     InitializeComponent();
     FormExIni();
     _systemButtonManager = new SystemButtonManager(this);
 }