Example #1
0
 private void UpdateBinding()
 {
     if (Model != null)
     {
         City     = Model.Options.Region.City;
         Latitude = Model.Options.Region.Latitude;
         TreeVM   = new TreesViewModel(Model.Tree);
         FrontVM  = new FrontViewModel(Model.Front);
         PlaceVM  = new PlaceViewModel(Model.Place);
     }
 }
Example #2
0
 public TreesView(TreesViewModel vm)
 {
     InitializeComponent();
     DataContext = vm;
 }