public CombinedViewModels() { ContactViewModel = new ContactViewModel(); OrganizationViewModel = new OrganizationViewModel(); CommunicationMethodViewModel = new CommunicationMethodViewModel(); CommunicationTypeViewModel = new CommunicationTypeViewModel(); SettingsViewModel = new SettingsViewModel(); }
public SettingsViewModel() { _settingsLoader = SettingsLoader.Load(); ProgramSettings = _settingsLoader.GetSettings(); _organizationManager = Directory.GetOrganizationManager(); _communicationTypeManager = Directory.GetCommunicationTypeManager(); OrganizationViewModel = new OrganizationViewModel(); CommunicationTypeViewModel = new CommunicationTypeViewModel(); AddedOrganization = new Organization(); AddedCommunicationType = new CommunicationType(); }