public ChooseSubProcedures(string techonlogyHeaderId) { InitializeComponent(); this.StartPosition = FormStartPosition.CenterParent; TechonlogyHeader = techonlogyHeaderManager.GetDetail(techonlogyHeaderId); this.bindingSource1.DataSource = TechonlogyHeader.detail; }
private void treeList1_FocusedNodeChanged(object sender, DevExpress.XtraTreeList.FocusedNodeChangedEventArgs e) { if (flag == 0) { //if (flag1 == 0) //{ if (e.Node != null && e.Node.ParentNode == null) { this.techonlogyHeader = techonlogyHeaderManager.GetDetail(e.Node.Tag.ToString()); this.action = "view"; this.Refresh(); } if (e.Node != null && e.Node.ParentNode != null) { flag = 1; treeList1.SetFocusedNode(e.Node.ParentNode); } // } // flag1 = 0; } flag = 0; }