コード例 #1
0
 public PhotosPageViewModel(
     ILog log,
     INavigationService navigationService,
     ISocialNetworkService socialNetworkService,
     IImagePicker imagePicker,
     INotificationsService notificationsService)
 {
     Log = log;
     NavigationService    = navigationService;
     SocialNetworkService = socialNetworkService;
     ImagePicker          = imagePicker;
     NotificationsService = notificationsService;
 }
コード例 #2
0
 public UserProfilePageViewModel(
     ISocialNetworkService socialNetworkService,
     ILog log,
     INavigationService navigationService,
     INotificationsService notificationService,
     IInputService inputService)
 {
     Log = log;
     SocialNetworkService = socialNetworkService;
     NavigationService    = navigationService;
     NotificationService  = notificationService;
     InputService         = inputService;
     LoadData();
 }
コード例 #3
0
        public MainPageViewModel(
            INavigationService navigationService,
            ISocialNetworkService socialNetworkService,
            ILog log)
        {
            Log = log;
            NavigationService    = navigationService;
            SocialNetworkService = socialNetworkService;

            if (SocialNetworkService.IsLogged())
            {
                Login();
            }
        }