public void OnBackKeyPressed(CancelEventArgs args) { #if LOG_REGISTRATION TLUtils.WriteLog("SignInViewModel.OnBackKeyPressed"); #endif if (IsWorking) { args.Cancel = true; IsWorking = false; MTProtoService.CancelSignInAsync(); MTProtoService.ClearHistory("SignInViewModel", false); NotifyOfPropertyChange(() => CanSignIn); } }