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