public Cursor GetCursor(GetTypeCursor.DrawType type) { switch(type) { case GetTypeCursor.DrawType.NodeBegin : return this.Begin_Cursor; case GetTypeCursor.DrawType.NodeGeneral : return this.General_Cursor; case GetTypeCursor.DrawType.SpecificallyOperation : return this.SpecificallyOperation_Cursor; case GetTypeCursor.DrawType.Gradation : return this.Gradation_Cursor; case GetTypeCursor.DrawType.Synchronization : return this.Synchronization_Cursor; case GetTypeCursor.DrawType.Asunder : return this.Asunder_Cursor; case GetTypeCursor.DrawType.Converge : return this.Converge_Cursor; case GetTypeCursor.DrawType.Gather : return this.Gather_Cursor; case GetTypeCursor.DrawType.Judgement : return this.Judgement_Cursor; case GetTypeCursor.DrawType.DataNode : return this.Data_Cursor; case GetTypeCursor.DrawType.NodeEnd : return this.End_Cursor; case GetTypeCursor.DrawType.Rectangle : return this.Rectangle_Cursor; case GetTypeCursor.DrawType.Eillpse : return this.Ellipse_Cursor; case GetTypeCursor.DrawType.BeeLine : return this.BeeLine_Cursor; case GetTypeCursor.DrawType.FoldLine : return this.FoldLine_Cursor; case GetTypeCursor.DrawType.String : return this.String_Cursor; } return Cursors.Default; }
private void init() {//获取父框架 this.SerializeInit(); this.arrLineList=this.arrayData.arrLineList; this.arrNodeList=this.arrayData.arrNodeList; this.arrLineConnectNode=this.arrayData.arrLineConnectNode; this.arrDrawStringList=this.arrayData.arrDrawStringList; this.arrLineSelectList=this.arrayData.arrLineSelectList; this.arrNodeSelectList=this.arrayData.arrNodeSelectList; this.arrDrawStringSelectList=this.arrayData.arrDrawStringSelectList; this.arrLineNotSelectList=this.arrayData.arrLineNotSelectList; this.arrNodeNotSelectList=this.arrayData.arrNodeNotSelectList; this.arrDrawStringNotSelectList=this.arrayData.arrDrawStringNotSelectList; this.bitmapBackGroupMap=this.control.bitmapBackGroupMap; this.bitmapMemeory=this.control.bitmapMemeory; this.graDrawLine=this.control.graDrawLine; this.graDrawPanel=this.control.graDrawPanel; this.penDrawLine=this.control.penDrawLine; this.penDrawNode=this.control.penDrawNode; this.penDrawPoint=this.control.penDrawPoint; this.penDrawString=this.control.penDrawString; this.penDrawBeeLine=this.control.penDrawBeeLine; this.bckColor = this.control.BackColor; this.fontDrawString=this.control.fontDrawString; this.TBDrawStringContent=this.control.drawStringContent; this.TBnodeContent=this.control.TBnodeContent; this.TBLineContent=this.control.TBLineContent; this.bgImage=this.control.bgImage; this.size=this.control.Size; this.getTypeCursor=new GetTypeCursor(); this.iArr_ShowHelpTip=new int[20]; // this.iLineFirstNodeX=150; // this.iLineFirstNodeY=100; this.iLineSecondNodeX=200; this.iLineSecondNodeY=100; this.iLine3thNodeX=200; this.iLine3thNodeY=200; this.iLine4thNodeX=250; this.iLine4thNodeY=200; this.iNodeWidth=50; this.iNodeHeight=55; this.iDrawStringWidth=50;