예제 #1
0
 public VacationsViewModel
 (
     IVacationManager vacationManager,
     ILocalizeService localizer,
     INetworkReachability networkReachability
 )
 {
     _vacationManager     = vacationManager;
     this.Localaizer      = localizer;
     _networkReachability = networkReachability;
     LocalizationModel();
 }
예제 #2
0
 public LoginViewModel(ILoginManager userManager, ILocalizeService localizer,
                       INetworkReachability networkReachability,
                       IPlatformException platformException,
                       IConfiguration config
                       )
 {
     _userManager         = userManager;
     this.Localizer       = localizer;
     _networkReachability = networkReachability;
     _platformException   = platformException;
     _config      = config;
     _offlinemode = !IsDeviceOnline();
     ChangeLanguage(_config.GetDefaultLanguage.ToString());
 }
예제 #3
0
 private void DatasetSetupInternal()
 {
     reachability = ServiceFactory.Instance.GetService <INetworkReachability>();
     reachability.NetworkReachabilityChanged += HandleNetworkChange;
 }
예제 #4
0
 private void DatasetSetupInternal()
 {
     _netReachability = ServiceFactory.Instance.GetService <INetworkReachability>();
     _netReachability.NetworkReachabilityChanged += OnNetworkReachabilityChanged;
 }
 /**
  * Set the delegate implementation.
  *
  * @param _delegate The delegate implementing platform specific functions.
  */
 public void SetDelegate(INetworkReachability _delegate)
 {
     this._delegate = _delegate;
 }
 /**
  * Constructor with delegate.
  *
  * @param _delegate The delegate implementing platform specific functions.
  */
 public NetworkReachabilityBridge(INetworkReachability _delegate) : base()
 {
     this._delegate = _delegate;
 }
예제 #7
0
 private void DatasetSetupInternal()
 {
     reachability = ServiceFactory.Instance.GetService<INetworkReachability>();
     reachability.NetworkReachabilityChanged += HandleNetworkChange;
 }
예제 #8
0
 private void DatasetSetupInternal()
 {
     _netReachability = ServiceFactory.Instance.GetService<INetworkReachability>();
     _netReachability.NetworkReachabilityChanged += OnNetworkReachabilityChanged;
 }
예제 #9
0
 internal Dataset()
 {
     reachability = ServiceFactory.Instance.GetService<INetworkReachability>();
     reachability.NetworkReachabilityChanged += HandleNetworkChange;
 }