void trvLstMain_CustomDrawNodeImages(object sender, DevExpress.XtraTreeList.CustomDrawNodeImagesEventArgs e) { if (_TreeListHoster != null) { _TreeListHoster.FormatTreeListNode((TreeListEx)sender, e); } }
private void trvLstMain_CustomDrawNodeImages(object sender, DevExpress.XtraTreeList.CustomDrawNodeImagesEventArgs e) { //bool existsIco = false; //if (_TreeListHoster.TreeViewCfg != null && !string.IsNullOrEmpty(_TreeListHoster.TreeViewCfg.IcoFieldName)) { // object val = e.Node.GetValue(_TreeListHoster.TreeViewCfg.IcoFieldName); // if (val != null) { // byte[] datas = (byte[])val; // e.Graphics.DrawImage(MB.Util.MyConvert.Instance.ByteToImage(datas), e.StateRect.Location); // existsIco = true; // } //} //if (!existsIco) { _TreeListHoster.FormatTreeListNode(trvLstMain, e); //if (_ImageList.Images.Count > 0) { // if (e.Node.HasChildren) // e.Graphics.DrawImage(_ImageList.Images[0], e.StateRect.Location); // else { // e.Graphics.DrawImage(_ImageList.Images[2], e.StateRect.Location); // } //} //} }