public IndividualDetailViewModel(IEventAggregator eventAggregator, StateListHelper stateListHelper,
                                  UserDataAccess userDataAccess, UserCredentials userCredentials, ActionTypesDataAccess actionTypesDataAccess,
                                  SunshineIDHelper sunshineIDHelper)
 {
     _actionTypeList        = actionTypesDataAccess.GetActionTypes();
     _user                  = userCredentials;
     _actionCompletedByList = userDataAccess.GetUserNames();
     States                 = new BindableCollection <string>(stateListHelper.States);
     _events                = eventAggregator;
     Deactivated            = false;
     _sunshineIDHelper      = sunshineIDHelper;
 }
Beispiel #2
0
 public OrganizationDetailViewModel(IEventAggregator eventAggregator, StateListHelper stateListHelper,
                                    UserDataAccess userDataAccess, UserCredentials userCredentials, ActionTypesDataAccess actionTypesDataAccess,
                                    OrgTypeDataAccess orgTypeDataAccess, DenominationTypesDataAccess denominationTypeDataAccess)
 {
     _denominations         = new BindableCollection <string>(denominationTypeDataAccess.GetDenominations());
     _orgTypes              = new BindableCollection <org_types>(orgTypeDataAccess.GetTypes());
     _actionTypeList        = actionTypesDataAccess.GetActionTypes();
     _user                  = userCredentials;
     _actionCompletedByList = userDataAccess.GetUserNames();
     States                 = new BindableCollection <string>(stateListHelper.States);
     _events                = eventAggregator;
     Deactivated            = false;
 }