Exemplo n.º 1
0
        private void LayoutRoot_Loaded(object sender, RoutedEventArgs e)
        {
            //IDataFactory dataFactory = DataFactory.Create<StaticData>();
            //List<string> data = dataFactory.GetData();

            DataService.LuckyDrawServiceClient client = new DataService.LuckyDrawServiceClient();
            client.GetNamesCompleted += new EventHandler<DataService.GetNamesCompletedEventArgs>(client_GetNamesCompleted);
            client.GetNamesAsync();
        }
Exemplo n.º 2
0
        private void GetActualData()
        {
            _actualData = new List<string>();

            DataService.LuckyDrawServiceClient client = new DataService.LuckyDrawServiceClient();
            client.GetNamesCompleted += new EventHandler<DataService.GetNamesCompletedEventArgs>(client_GetNamesCompleted);
            client.GetNamesAsync();
        }