//获取商品类型 private void ProductTypeInfoResult(ResultModel result) { if (result.pack.Content.MessageType != 1) { return; } if (result.pack.Cmd == Cmd.CMD_SYS_INFO && result.pack.Content.ScSysInfo.Parent.Equals(SystemManageNetOperation.productTypeParent)) { NetMessageManage.RemoveResultBlock(ProductTypeInfoResult); System.Console.WriteLine("ProductTypeInfoResult:" + result.pack); this.Invoke(new RefreshUIHandle(delegate { //更新系统管理 SysManage.UpdateProductData(result.pack.Content.ScSysInfo.ChildList); this.items = result.pack.Content.ScSysInfo.ChildList; RefreshGridControl(); })); } }