www.pudn.com > WorkflowDesigner.rar > MyPanel.cs, change:2007-11-16,size:897b


using System; 
using System.Collections.Generic; 
using System.ComponentModel; 
using System.Data; 
using System.Drawing; 
using System.Text; 
using System.Windows.Forms; 
 
namespace WorkflowDesigner.Designer 
{ 
    /// <summary> 
    /// 画布 
    /// </summary> 
    public partial class MyPanel : Control 
    { 
        /// <summary> 
        /// 构造函数 
        /// </summary> 
        public MyPanel() 
        { 
            //减少刷新 
            DoubleBuffered = true; 
            InitializeComponent(); 
        } 
 
        /// <summary> 
        /// 当绘制时 
        /// </summary> 
        /// <param name="pe">绘制事件参数</param> 
        protected override void OnPaint(PaintEventArgs pe) 
        { 
            // TODO: 在此处添加自定义绘制代码 
 
            // 调用基类 OnPaint 
            base.OnPaint(pe); 
        } 
    } 
}