public SettingsViewModel(IRepository commonRepository, IMessanger commonMessanger) { repository = commonRepository; dateTimePreferences = repository.GetDateTimePreferences(); messanger = commonMessanger; LoadDateTimePreferences(); SaveDateTimePreferencesCommand = new RelayCommand(SaveDateTimePreferences); }
public void SetDateTimePreferences(DateTimePreferences preferences) { dateTimePreferences = preferences; }