Exemplo n.º 1
0
 private void OnDeserialized(StreamingContext context = default(StreamingContext))
 {
     Coverage = Coverage ?? new ObservableCollection <LandCoverItem>();
     if (Coverage.Count == 0 || Coverage[0].Mapping == null)
     {
         Coverage.Clear();
         foreach (var item in LandCoverTableService.GetTable("ESACCI LCCS"))
         {
             Coverage.Add(item.Clone());
         }
     }
 }
Exemplo n.º 2
0
        public LandCoverViewModel(Action <NavigationViewModel> navigate, NavigationViewModel back)
            : base(navigate, back)
        {
            ImportCommand   = new RelayCommand(() => Import());
            SettingsCommand = new RelayCommand(Settings);

            if (LandCoverIndicator.Coverage.Count == 0)
            {
                foreach (var item in LandCoverTableService.GetTable("ESACCI LCCS"))
                {
                    LandCoverIndicator.Coverage.Add(item.Clone());
                }
            }
            LandCoverTableViewModel = new LandCoverTableViewModel(LandCoverIndicator.Coverage);
        }