Пример #1
0
        protected override void OnHandleCreated(EventArgs e)
        {
            if (!DesignMode)
            {
                m_lineImage = new LineImage();
            }

            base.OnHandleCreated(e);
        }
Пример #2
0
        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);
        }