In the Silverlight application I have 2 Functions
1st one:
private void LoadData()
{
ServiceReference2.Service1Client webService = new ServiceReference2.Service1Client();
webService.GetContentCompleted += new EventHandler<ServiceReference2.GetContentCompletedEventArgs>(webService_GetContentCompleted);
webService.GetContentAsync();
}
2nd one:
private void webService_GetContentCompleted(object sender, ServiceReference2.GetContentCompletedEventArgs e)
{
IEnumerable<ServiceReference2.MediaContent> list = e.Result as IEnumerable<ServiceReference2.MediaContent>;
dataGrid1.ItemsSource = list;
}
How can I get list from other functons in my project?
Is this what you are looking for?