回调函数方法是静态函数,需要调用窗体控件,赋值或取值. 定义 public static Form1 mainFrm; mainFrm = this; public partial class Form1 : Form { public static Form1 mainFrm; public Form1() { mainFrm = this; InitializeComponent(); } public static void WaitCallBackReceiveConnectedIn…
今天一位同事咨询Devexpress TreeList控件绑定自动显示父子节点对像,但结果是不会显示带父子节点关系,而是将所有的节点作为父节点显示出来了,对像类的代码如下 public class Item:XPBaseObject { public Item() : base() { } public Item(Session session) : base(session) { } [Key(true)] public int Id{ get;set; } public string Nam…