protected override void OnHandleCreated(EventArgs e) { if (!DesignMode) { m_lineImage = new LineImage(); } base.OnHandleCreated(e); }
public Workflow(WorkflowViewer viewer, LineImage lineImage) : base() { m_viewer = viewer; m_lineImage = lineImage; m_engine = new WorkflowEngine(this); InitializeComponent(); SetStyle(ControlStyles.AllPaintingInWmPaint, true); SetStyle(ControlStyles.UserPaint, true); SetStyle(ControlStyles.OptimizedDoubleBuffer, true); SetStyle(ControlStyles.SupportsTransparentBackColor, true); }