public ViewModelLocator() { _accountModel = new AccountModel(); _familySelection = new FamilySelectionModel(); _billSelection = new BillSelectionModel(); _memberSelection = new MemberSelectionModel(); _messageQueue = new MessageQueue(); _messageQueue .Register(new CreateBillHandler()) .Register(new UpdateBillHandler()); }
public FamilySelectorDesignDataModel() { FamilySelectionModel familySelection = new FamilySelectionModel(); Family perry = new Family { Name = "Perry" }; Family wilson = new Family { Name = "Wilson" }; familySelection.AddFamily(perry); familySelection.AddFamily(wilson); familySelection.SelectedFamily = perry; _familySelector = new FamilySelectorViewModel( new ParseUser(), familySelection); }
public FamilySelectorViewModel(ParseUser user, FamilySelectionModel familySelection) { _user = user; _familySelection = familySelection; }