private async void FacebookLogin_Clicked(object sender, EventArgs e) { ButtonsLocker.LockAll(btnLayout); await Navigation.PushModalAsync(new AccessFacebookProfile()); ButtonsLocker.UnlockAll(btnLayout); }
private async void Info_Button_Clicked(object sender, EventArgs e) { ButtonsLocker.LockAll(BtnLayout); await Navigation.PushModalAsync(new informationPage()); ButtonsLocker.UnlockAll(BtnLayout); }
private async void HowToPlay_Button_Clicked(object sender, EventArgs e) { ButtonsLocker.LockAll(BtnLayout); await Navigation.PushModalAsync(new instructionsPage()); ButtonsLocker.UnlockAll(BtnLayout); }
private void UnLock() { ButtonsLocker.UnlockAll(btnLayout); subtitles.IsEnabled = true; info.IsEnabled = true; playVideo.IsEnabled = true; mapBtn.IsEnabled = true; }
private void Lock() { ButtonsLocker.LockAll(btnLayout); subtitles.IsEnabled = false; info.IsEnabled = false; playVideo.IsEnabled = false; mapBtn.IsEnabled = false; }
private async void Anonymus_Clicked(object sender, EventArgs e) { ButtonsLocker.LockAll(btnLayout); if (await DisplayAlert(AppResources.login_as_anonymous, AppResources.anonymous_alert, AppResources.Yes, AppResources.No)) { await Navigation.PushModalAsync(new groupCreationPage()); } ButtonsLocker.UnlockAll(btnLayout); }
private async void Play_Button_Clicked(object sender, EventArgs e) { ButtonsLocker.LockAll(BtnLayout); while (!await AskPermissionToUseLocation()) { ; } gc.StartTaskLocation(); if (await CanUserPlay()) { await Navigation.PushModalAsync(new LoginsPage()); } else { await DisplayAlert("BGU ARTS", AppResources.Out_Of_Valid_Sector_Message, AppResources.ok); } ButtonsLocker.UnlockAll(BtnLayout); }
private void GoogleLogin_Clicked(object sender, EventArgs e) { ButtonsLocker.LockAll(btnLayout); _googleManager.Login(OnLoginComplete); ButtonsLocker.UnlockAll(btnLayout); }