Ejemplo n.º 1
0
 private void UpdateSelectedPathMapVM()
 {
     var osConfigInfo = this.Model.SelectedOsConfigurationInfo;
     if ( osConfigInfo != null )
     {
         var pathMapVM = this._osConfigInfoToPathMapVmMap[osConfigInfo];
         this.SelectedPathMapVM = pathMapVM;
     }
 }
Ejemplo n.º 2
0
 private void InitializeSelectedPathMapVm()
 {
     var capacity = this.Model.OsConfigs.Count();
     var map = new Dictionary<IOsConfigurationInfo, PathMap.ViewModel>( capacity );
     foreach ( var osConfigInfo in this.Model.OsConfigs )
     {
         var pathMapModel = this.Model.OsConfigInfoToPathMapModelMap[osConfigInfo];
         var pathMapVM = new PathMap.ViewModel( pathMapModel );
         map.Add( osConfigInfo, pathMapVM );
     }
     this._osConfigInfoToPathMapVmMap = map;
 }