private Bundle CreateViewModelBundle(IQuestViewModel viewModel) { Bundle viewModelBundle = new Bundle(); viewModelBundle.PutBoolean(IsImportantKey, viewModel.IsImportant); viewModelBundle.PutBoolean(UseStartTimeKey, viewModel.UseStartTime); viewModelBundle.PutBoolean(UseDeadlineKey, viewModel.UseDeadline); _dateTimeStateHandler.Save(StartTimeKey, viewModel.StartTime, viewModelBundle); _dateTimeStateHandler.Save(DeadlineKey, viewModel.Deadline, viewModelBundle); return(viewModelBundle); }
public ValidationErrorsFragment(IList <ClarifiedError <int> > clarifiedErros) : base() { clarifiedErros.ThrowIfNull(nameof(clarifiedErros)); Bundle arguments = new Bundle(); _clarifiedErrorsStateHandler = ServiceLocator.Resolve <IEntityStateHandler <IList <ClarifiedError <int> > > >(); _clarifiedErrorsStateHandler.Save(ClarifiedErrorsKey, clarifiedErros, arguments); this.Arguments = arguments; }
private void PutItsDateTime(Bundle bundle, DateTime dateTime) { DateTimeHandler.Save(DateTimeValueId, dateTime, bundle); }
/// <summary> /// Saves view model state in the bundle. /// </summary> /// <param name="bundle"></param> private void SaveViewModelState(Bundle bundle) { _questDetailsStateHandler.Save(ViewModelKey, ViewModel.QuestViewModel, bundle); }