public void DrawForms(Graphics g)//画图元控件 { for (int i = 0; i < ListTuYuan.Count; i++) { CBase COb = ListTuYuan[i]; //if (COb.ElementType == LCElementType.Pipe || COb.ElementType == LCElementType.Ring || COb.ElementType == LCElementType.TEXT || COb.ElementType == LCElementType.ELLIPS) { COb.Draw(g); } } }