public ActivityController(IEFRepository repository, IActivityView view) : base(repository, view) { this._helper = DateHelper.GetInstance(); this._view = view; this._view.View_GetActivityData = this.GetActivityData; this._view.View_ViewReady = ViewReady; }
public static void NavigateBack( [NotNull] this NavigationServiceBase navigationService, [NotNull] IActivityView fromView, [CanBeNull] BackwardNavigationDelegate navigationStrategy = null) { if (navigationService == null) { throw new ArgumentNullException(nameof(navigationService)); } if (fromView == null) { throw new ArgumentNullException(nameof(fromView)); } (navigationStrategy ?? NavigationStrategy.Backward.Default()).Invoke(fromView); }
public static void NavigateBack <TResult>( [NotNull] this NavigationServiceBase navigationService, [NotNull] IActivityView <IViewModelWithResult <TResult> > fromView, ViewModelResultCode resultCode, [CanBeNull] TResult result, [CanBeNull] BackwardNavigationDelegate navigationStrategy = null) where TResult : ViewModelResultBase { if (navigationService == null) { throw new ArgumentNullException(nameof(navigationService)); } if (fromView == null) { throw new ArgumentNullException(nameof(fromView)); } var intent = new Intent(); intent.PutViewModelResult(result); fromView.SetResult(resultCode.ToResult(), intent); (navigationStrategy ?? NavigationStrategy.Backward.Default()).Invoke(fromView); }
public GetActivityPresenter(IActivityView activityview, Activity context) { this.ActivityView = activityview; this.Activity = new ActivityImpl(context); }