示例#1
0
 private void InitiateViewModels()
 {
     _mainViewModel           = new MainWindowViewModel(_model);
     _mapViewModel            = new BingMapViewModel(_model);
     _userNavigationView      = new UserNavigationViewModel(_model);
     _dashboardTableViewModel = new DashboardTableViewModel(_model);
 }
        private static BingMapViewModel ConvertToViewModel(BingMapDto dto)
        {
            BingMapViewModel vm = new BingMapViewModel
            {
                Center   = dto.Center,
                Pushpins = dto.Positions
            };

            return(vm);
        }
 /// <summary>
 /// Default constuctor which initializes component on page.
 /// </summary>
 public BingMapPage()
 {
     InitializeComponent();
     _viewModel = new BingMapViewModel();
     BuildApplicationBar();
 }
示例#4
0
 /// <summary>
 /// Default constuctor which initializes component on page.
 /// </summary>
 public BingMapPage()
 {
     InitializeComponent();
     _viewModel = new BingMapViewModel();
     BuildApplicationBar();
 }