Beispiel #1
0
        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);
        }
Beispiel #2
0
        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;
        }
Beispiel #3
0
 private void PutItsDateTime(Bundle bundle, DateTime dateTime)
 {
     DateTimeHandler.Save(DateTimeValueId, dateTime, bundle);
 }
Beispiel #4
0
 /// <summary>
 /// Saves view model state in the bundle.
 /// </summary>
 /// <param name="bundle"></param>
 private void SaveViewModelState(Bundle bundle)
 {
     _questDetailsStateHandler.Save(ViewModelKey, ViewModel.QuestViewModel, bundle);
 }