コード例 #1
0
        public ViewModelLocator()
        {
            _accountModel    = new AccountModel();
            _familySelection = new FamilySelectionModel();
            _billSelection   = new BillSelectionModel();
            _memberSelection = new MemberSelectionModel();
            _messageQueue    = new MessageQueue();

            _messageQueue
            .Register(new CreateBillHandler())
            .Register(new UpdateBillHandler());
        }
コード例 #2
0
        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);
        }
コード例 #3
0
 public FamilySelectorViewModel(ParseUser user, FamilySelectionModel familySelection)
 {
     _user            = user;
     _familySelection = familySelection;
 }