private async void Button_Click(object sender, RoutedEventArgs e)
 {
     var vmStations = new ViewModelOfStations();
     var stations = await vmStations.GetDataModel();
     Debug.WriteLine("==============================");
     foreach (var station in stations)
     {
         Debug.WriteLine("Button cliked!!!{0}", station.Name);
     }
     Debug.WriteLine("==============================");
     //StationViewControl.DataContext = from station in vmStations.Stations where true select station;
 }
 private async void DrawStations()
 {
     var vmStations = new ViewModelOfStations();
     var stations = await vmStations.GetDataModel();
     StationViewControl.DataContext = from station in stations where true select station;
 }
Beispiel #3
0
 public void StartTest()
 {
     var vm = new ViewModelOfStations();
     vm.GetDataModel();
 }