Exemplo n.º 1
0
        private async void FacebookLogin_Clicked(object sender, EventArgs e)
        {
            ButtonsLocker.LockAll(btnLayout);
            await Navigation.PushModalAsync(new AccessFacebookProfile());

            ButtonsLocker.UnlockAll(btnLayout);
        }
Exemplo n.º 2
0
        private async void Info_Button_Clicked(object sender, EventArgs e)
        {
            ButtonsLocker.LockAll(BtnLayout);
            await Navigation.PushModalAsync(new informationPage());

            ButtonsLocker.UnlockAll(BtnLayout);
        }
Exemplo n.º 3
0
        private async void HowToPlay_Button_Clicked(object sender, EventArgs e)
        {
            ButtonsLocker.LockAll(BtnLayout);
            await Navigation.PushModalAsync(new instructionsPage());

            ButtonsLocker.UnlockAll(BtnLayout);
        }
Exemplo n.º 4
0
 private void UnLock()
 {
     ButtonsLocker.UnlockAll(btnLayout);
     subtitles.IsEnabled = true;
     info.IsEnabled      = true;
     playVideo.IsEnabled = true;
     mapBtn.IsEnabled    = true;
 }
Exemplo n.º 5
0
 private void Lock()
 {
     ButtonsLocker.LockAll(btnLayout);
     subtitles.IsEnabled = false;
     info.IsEnabled      = false;
     playVideo.IsEnabled = false;
     mapBtn.IsEnabled    = false;
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 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);
 }
Exemplo n.º 8
0
 private void GoogleLogin_Clicked(object sender, EventArgs e)
 {
     ButtonsLocker.LockAll(btnLayout);
     _googleManager.Login(OnLoginComplete);
     ButtonsLocker.UnlockAll(btnLayout);
 }