private async void Login(Authentication authentication)
 {
     StartLoading();
     try
     {
         await service.LoginAsync(authentication);
         SwitchWindows(authentication);
     }
     catch (FaultException e)
     {
         Utils.ShowError(this, e.Message);
     }
     StopLoading();
 }
Ejemplo n.º 2
0
        private async void Login(Authorization authorization)
        {
            StartLoading();
            try
            {
                await service.LoginAsync(authorization);

                SwitchWindows(authorization);
            }
            catch (UnsuccessfulResponseException e)
            {
                Utils.ShowError(this, e.Message);
            }
            StopLoading();
        }