private async void OnRefreshButtonClicked(object sender) { if (!Codes.IsRefreshing) { string mes = await Codes.RefreshAsync(); await Codes.WriteCodes(); await Application.Current.MainPage.DisplayAlert("Информация", mes, "ОК"); } }