예제 #1
0
파일: frmSieMens.cs 프로젝트: Sophomore84/-
        public frmSieMens()
        {
            InitializeComponent();

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