private void treeList1_CustomDrawNodeCheckBox(object sender, DevExpress.XtraTreeList.CustomDrawNodeCheckBoxEventArgs e) { if (e.Node != null) { _FSubheadingsInfo info = (GetValueByNode(e.Node)) as _FSubheadingsInfo; if (info != null) { e.Handled = true; } } }
private bool Getwhere(_ObjectInfo info) { bool flag = false; _FSubheadingsInfo sinfo = info as _FSubheadingsInfo; if (info.XMBM.Contains(this.Filter) && info.GetType() == typeof(_FFixedListInfo) && info.XMBM != this.Info.XMBM) { flag = true; } if (sinfo != null) { if (sinfo.Parent.XMBM.Contains(this.Filter) && info.GetType() == typeof(_FSubheadingsInfo) && sinfo.Parent.XMBM != this.Info.XMBM) { flag = true; } } return(flag); }