Esempio n. 1
0
        protected Type? GetCurrentActivityViewModelType()
        {
            Type? currentActivityType = CurrentActivity?.GetType();

            var activityViewModelType = ViewModelTypeFinder.FindTypeOrNull(currentActivityType);
            return activityViewModelType;
        }
Esempio n. 2
0
        protected Type?GetCurrentActivityViewModelType()
        {
            Type?currentActivityType = null;

            if (CurrentActivity.IsActivityAlive())
            {
                currentActivityType = CurrentActivity !.GetType();
            }

            var activityViewModelType = ViewModelTypeFinder?.FindTypeOrNull(currentActivityType);

            return(activityViewModelType);
        }
Esempio n. 3
0
        protected Type?GetCurrentActivityViewModelType()
        {
            Type?currentActivityType = null;

            if (CurrentActivity.IsActivityAlive())
            {
                currentActivityType = CurrentActivity !.GetType();
            }

            if (currentActivityType == null)
            {
                return(null);
            }

            return(ViewModelTypeFinder?.FindTypeOrNull(currentActivityType));
        }
Esempio n. 4
0
        protected Type GetAssociatedViewModelType(Type fromFragmentType)
        {
            Type viewModelType = ViewModelTypeFinder.FindTypeOrNull(fromFragmentType);

            return(viewModelType ?? fromFragmentType.GetBasePresentationAttributes().First().ViewModelType);
        }