Beispiel #1
0
        private void treeWorkflow_AfterSelect(object sender, TreeViewEventArgs e)
        {
            _nowTreeNode   = (BaseTreeNode)treeWorkflow.SelectedNode;
            _nowTreeNodeId = _nowTreeNode.NodeId;
            MenuEnable(_nowTreeNode.NodeType);

            if (_nowTreeNode.NodeType == WorkConst.WORKFLOW_CLASS)
            {
                _nowTreeNode.Nodes.Clear();
                WorkFlowClassTreeNode.LoadWorkFlowClassSelectNode(_nowTreeNodeId, _nowTreeNode.Nodes);
                WorkFlowTreeNode.LoadWorkFlowSelectNode(_nowTreeNodeId, _nowTreeNode.Nodes);
            }

            if (_nowTreeNode.NodeType == WorkConst.WORKFLOW_FLOW)
            {
                if (WpClient != null)
                {
                    WpClient.closeFlow();
                }

                this.plClient.Controls.Clear();
                WpClient = new WorkPlace(_nowTreeNodeId, UserId, UserName)
                {
                    WorkFlowCaption = _nowTreeNode.Text,
                    CanEdit         = true,
                    State           = WorkConst.STATE_MOD
                };
                this.plClient.Controls.Add(WpClient);
                toolStrip1.Enabled = true;
            }
        }
Beispiel #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="theParent">父控件</param>
 /// <param name="theStartingPoint"></param>
 public Rubberband(WorkPlace theParent, Point theStartingPoint)
 {
     parent         = theParent;
     parent.Capture = true;            //属性Capture指示是否获取鼠标
     //Cursor.Clip = parent.RectangleToScreen(parent.ClientRectangle);//控制鼠标范围
     rect = new Rectangle(theStartingPoint.X, theStartingPoint.Y, 0, 0);
 }