public ContactController(IShellService shellService, ContactLayoutViewModel contactLayoutViewModel, ContactListViewModel contactListViewModel, ContactViewModel contactViewModel)
 {
     this.shellService           = shellService;
     this.contactLayoutViewModel = contactLayoutViewModel;
     ContactListViewModel        = contactListViewModel;
     ContactViewModel            = contactViewModel;
     NewContactCommand           = new DelegateCommand(NewContact);
     deleteContactCommand        = new DelegateCommand(DeleteContact, CanDeleteContact);
 }
Example #2
0
 public ContactController(IShellService shellService, ContactLayoutViewModel contactLayoutViewModel, ContactListViewModel contactListViewModel, ContactViewModel contactViewModel)
 {
     this.shellService = shellService;
     this.contactLayoutViewModel = contactLayoutViewModel;
     this.contactListViewModel = contactListViewModel;
     this.contactViewModel = contactViewModel;
     this.newContactCommand = new DelegateCommand(NewContact);
     this.deleteContactCommand = new DelegateCommand(DeleteContact, CanDeleteContact);
 }