private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
{
platformClient = new PlatformDB.PlatformDBClient();
platformClient.GetEntityDataCompleted += new EventHandler(platformClient_GetEntityDataCompleted);
platformClient.GetEntityDataAsync();
}
void platformClient_GetEntityDataCompleted(object sender, PlatformDB.GetEntityDataCompletedEventArgs e)
{
try
{
if (e.Result != null)
{
foreach (var item in e.Result)
{
TreeViewItem tviItem = new TreeViewItem() { Header = item.EntityIsBelong };
foreach (var items in item.dirEntity)
{
if (items.Key == item.EntityIsBelong)
{
foreach (var entity in items.Value.OrderBy(c => c.IsEntity).ToList())
{
TreeViewItem tvItem = new TreeViewItem() { Header = entity.EntityName };
tviItem.Items.Add(tvItem);
}
}
}
tvEntity.Items.Add(tviItem);
}
}
}
catch
{
}
}
这是完整的程序代码,执行后,程序无法进入 platformClient_GetEntityDataCompleted ,导致程序运行不起来。WCF 有数据返回。
silverlight调用wcf后无法执行
- 写回答
- 好问题 0 提建议
- 追加酬金
- 关注问题
- 邀请回答
-
0条回答
悬赏问题
- ¥15 素材场景中光线烘焙后灯光失效
- ¥15 请教一下各位,为什么我这个没有实现模拟点击
- ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
- ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
- ¥20 有关区间dp的问题求解
- ¥15 多电路系统共用电源的串扰问题
- ¥15 slam rangenet++配置
- ¥15 有没有研究水声通信方面的帮我改俩matlab代码
- ¥15 ubuntu子系统密码忘记
- ¥15 保护模式-系统加载-段寄存器