public flowAttribute(Node node, DrawFlowControl control) { // // Windows 窗体设计器支持所必需的 // InitializeComponent(); // // TODO: 在 InitializeComponent 调用后添加任何构造函数代码 // this.node = node; this.control = control; this.arr_InFlowLineList = new ArrayList(); this.arr_OutFlowLineList = new ArrayList(); this.FormInterfaceInit(); this.FormContentInit(); this.BackgroundImage = new Bitmap(GetType(), "images.attribute.png"); }
//实例一个绘制流程图控件 private void CreateTabPage(string PageName, bool isLoadDefault) { //实例一个选项卡页面 TabPage tabPage = new TabPage(PageName); tabPage.BackColor = Color.FromArgb(100, 100, 100); tabPage.ImageIndex = 0; GDIDrawFlow.DrawFlowControl dfControl = new DrawFlowControl(); dfControl.Dock = DockStyle.Fill; tabPage.Controls.Add(dfControl); this.flatTabControl1.Controls.Add(tabPage); dfControl.FormRefrash(); this.flatTabControl1.SelectedIndex = this.flatTabControl1.TabCount - 1; if (isLoadDefault) { this.GetCurrentFlowControl.cb_limit.Checked = true; selectFileName = "Default.xml"; userOpenType = "OpenDefault"; userOperate = "Open"; } }