Esempio n. 1
0
        private bool EnsureLicenseExists()
        {
            if (!_licenseService.AnyExistingLicense())
            {
                _licenseVisualizerService.ShowLicense();
            }

            return(_licenseService.AnyExistingLicense());
        }
        private bool OnValidateLicenseOnServerCanExecute()
        {
            if (string.IsNullOrWhiteSpace(ServerUri))
            {
                return(false);
            }

            if (!_licenseService.AnyExistingLicense())
            {
                return(false);
            }

            return(true);
        }
        protected override async Task <bool> CancelAsync()
        {
            if (!_licenseService.AnyExistingLicense())
            {
                Log.Debug("Closing application");

                _navigationService.CloseApplication();
            }

            return(true);
        }