Exemple #1
0
        public PersonenViewModel()
        {
            GetPersonenCommand = new Command(GetPersonen);

            // Controllfreak-Antipattern
            service = new PersonenService();
        }
Exemple #2
0
 public MainViewModel() // ctor + TAB + TAB
 {
     PersonenLadenCommand = new Command(PersonenLaden);
     service = new PersonenService();
 }
 public MainViewModel()
 {
     // Kontrollfreak-Antipattern:
     service            = new PersonenService();
     GetPersonenCommand = new Command(GetPersonen);
 }
Exemple #4
0
 public MainViewModel(PersonenService service)
 {
     this.service       = service;
     GetPersonenCommand = new Command(GetPersonen);
 }
Exemple #5
0
 public PersonenViewModel()
 {
     // Controlfreak-Antipattern
     service             = new PersonenService();
     LadePersonenCommand = new Command(LadePersonen);
 }
 private void GetPersonen()
 {
     Personenliste = new PersonenService().GetPersonen();
 }