public DrawFlowTable(DrawObject indrawObject) { drawObject=indrawObject; flowTable.Columns.Add (colName); colName.MaxLength=2000; flowTable.Columns.Add(colInNode); flowTable.Columns.Add (colOutNode); flowTable.Columns.Add(colFunction); flowTable.Columns.Add (colRole); flowTable.Columns.Add(colInfo); nodeList=drawObject.NodeList; }
/// <summary> /// ��ʼ�� /// </summary> private void init() { // //imageArr // imageArr[0] = new Bitmap(GetType(), "images.back1.gif"); imageArr[1] = new Bitmap(GetType(), "images.back2.gif"); imageArr[2] = new Bitmap(GetType(), "images.back3.gif"); imageArr[3] = new Bitmap(GetType(), "images.back4.gif"); imageArr[4] = new Bitmap(GetType(), "images.back5.gif"); this.menus.Start(this);//ʵ�ֲ˵���� bgImage = new Bitmap(GetType(), "images.back1.gif");//�������� size = SystemInformation.PrimaryMonitorMaximizedWindowSize; this.bitmapMemeory = new Bitmap(size.Width, size.Height); this.graDrawPanel = Graphics.FromImage(this.bitmapMemeory); this.graDrawPanel.SmoothingMode = SmoothingMode.AntiAlias; this.bckColor = this.BackColor; this.graDrawLine = this.CreateGraphics(); this.penDrawLine = new Pen(Color.Black, 1); this.penDrawNode = new Pen(Color.Blue, 2); this.penDrawPoint = new Pen(Color.Black, 6); this.penDrawBeeLine = new Pen(Color.Black, 1); this.penDrawBeeLine.StartCap = LineCap.RoundAnchor; AdjustableArrowCap myArrow = new AdjustableArrowCap(4, 6); CustomLineCap customArrow = myArrow; this.penDrawLine.CustomEndCap = myArrow; this.penDrawLine.StartCap = LineCap.RoundAnchor; this.penDrawString = new Pen(Color.Red, 5); this.fontDrawString = new Font("����", 9f); this.drawObject = new DrawObject(this); drawObject.GetTableList(); FormRefrash(); AddToolTip(true); }
public MakeControlXml(DrawObject indrawObject) { drawObject=indrawObject; }