Exemplo n.º 1
0
        private async void WindowLoaded()
        {
            if (string.IsNullOrWhiteSpace(_credentials.GetEmail()))
            {
                return;
            }
            Busy = true;
            var access = await Task.Run(() => _credentials.TryGetWebApiToken());

            if (access)
            {
                TransferToEditorWindow();
            }
            else
            {
                Busy = false;
            }
        }
Exemplo n.º 2
0
 public LogInViewModel()
 {
     _credentials = new CredentialsManager(Settings.ApiUrl, Settings.UserRelatedStoragePath,
                                           Settings.SystemRelatedStoragePath, "ArktinMonitor");
     _email = _credentials.GetEmail();
 }