예제 #1
0
 public BandViewModel()
 {
     Bandliste      = new Model.BandList();
     selectedBand   = new Model.Band();
     AddBandCommand = new AddBandCommand(AddNewBand);
     NewBand        = new Model.Band();
     //AddBandCommand = new RelayCommand(AddNewBand);
 }
예제 #2
0
        public BandViewModel()
        {
            Bandliste         = new Model.BandList();
            selectedBand      = new Model.Band();
            AddBandCommand    = new AddBandCommand(AddNewBand);
            NewBand           = new Model.Band();
            DeleteBandCommand = new RelayCommand(DeleteBand);

            SaveBandCommand = new RelayCommand(GemDataTilDiskAsync);

            //bruger en anonym metode i min relaycommand
            DeleteAllBandCommand = new RelayCommand(() => this.Bandliste.Clear());

            localfolder = ApplicationData.Current.LocalFolder;
        }
예제 #3
0
 public BandViewModel()
 {
     Bandliste    = new Model.BandList();
     SelectedBand = new Model.Band();
 }