在 Silverlight 应用程序中,我有 2 个功能
第一个:
private void LoadData()
{
ServiceReference2.Service1Client webService = new ServiceReference2.Service1Client();
webService.GetContentCompleted += new EventHandler<ServiceReference2.GetContentCompletedEventArgs>(webService_GetContentCompleted);
webService.GetContentAsync();
}
第二个:
private void webService_GetContentCompleted(object sender, ServiceReference2.GetContentCompletedEventArgs e)
{
IEnumerable<ServiceReference2.MediaContent> list = e.Result as IEnumerable<ServiceReference2.MediaContent>;
dataGrid1.ItemsSource = list;
}
如何list
从项目中的其他功能中获取信息?