Exemple #1
0
 public WodViewModel()
 {
     NewWod           = new Model.Wod();
     AddWodCommand    = new AddWodCommand(AddNewWod);
     Wodliste         = new Model.WodList();
     _selectedWod     = new Model.Wod();
     RemoveWodCommand = new RremoveWodCommand(RemoveThisWod);
     SaveWodCommand   = new SaveWodCommand(GemDataTilDiskAsync);
     LoadWodCommand   = new LoadWodCommand(HentDataFraDiskAsync);
     localfolder      = ApplicationData.Current.LocalFolder;
     HentDataFraDiskAsync();
 }
Exemple #2
0
        public WodViewModel()
        {
            Wodliste         = new Model.WodList();
            SelectedWod      = new Model.Wod();
            AddWodCommand    = new AddWodCommand(AddNewWod);
            RemoveWodCommand = new RemoveWodCommand(RemoveSelectedWod);
            NewWod           = new Model.Wod();
            //AddWodCommand = new RelayCommand(AddNewWod, null);
            SaveWodCommand = new SaveWodCommand(GemDataTilDiskAsync);
            LoadWodCommand = new LoadWodCommand(HentdataFraDiskAsync);

            localfolder = ApplicationData.Current.LocalFolder;
        }