public bool Login(string UserName, string Password, string Client, string Language) { BeforeLogin?.Invoke(Session, new EventArgs()); Session.FindById <GuiTextField>("wnd[0]/usr/txtRSYST-BNAME").Text = UserName; Session.FindById <GuiTextField>("wnd[0]/usr/pwdRSYST-BCODE").Text = Password; Session.FindById <GuiTextField>("wnd[0]/usr/txtRSYST-MANDT").Text = Client; Session.FindById <GuiTextField>("wnd[0]/usr/txtRSYST-LANGU").Text = Language; var window = Session.FindById <GuiFrameWindow>("wnd[0]"); window.SendVKey(0); GuiStatusbar status = Session.FindById <GuiStatusbar>("wnd[0]/sbar"); if (status != null && status.MessageType.ToLower() == "e") { Connection.CloseSession(Session.Id); FailLogin?.Invoke(Session, new EventArgs()); return(false); } AfterLogin?.Invoke(Session, new EventArgs()); GuiRadioButton rb_Button = Session.FindById <GuiRadioButton>("wnd[1]/usr/radMULTI_LOGON_OPT2"); if (rb_Button != null) { rb_Button.Select(); window.SendVKey(0); } return(true); }
float Ratio = 20; // public // Use this for initialization void Start() { //afterLoginScreen.gameObject.SetActive (false); player = Player.GetComponent <CharacterScript> (); gc = GC.GetComponent <GameController> (); gclogin = GCLogin.GetComponent <AfterLogin> (); menuAudio = GameObject.Find("Soundtrack").GetComponent <AudioSource> (); User1.Add("j_sevamo"); //Username User1.Add("2"); //Vidas User1.Add("nomejoda"); //password User2.Add("felipito"); User2.Add("11"); User2.Add("pollo"); Users.Add(User1); Users.Add(User2); Sorry.gameObject.SetActive(false); Loading.gameObject.SetActive(false); nolifes.gameObject.SetActive(false); //InputUsuario.asteriskChar = "$!£%&*"[0]; if (menuAudio.isPlaying == false) { menuAudio.Play(); } //inputUsername = "******"; //passWord = "******"; }
private void WebBrowser_Navigated(object sender, WebBrowserNavigatedEventArgs e) { if (webBrowser.HasErorr) { ClientUri = null; ShowFailed(webBrowser.ErrorDescription, true); } else { if (ClientUri != null) { webBrowser.Stop(); AfterLoginEventArgs eventArgs = new AfterLoginEventArgs(ClientUri, CookieUtil.InternetGetCookieEx(ClientUri), Email); AfterLogin?.Invoke(eventArgs); if (eventArgs.Sucess) { DialogResult = DialogResult.OK; Close(); } else { ShowFailed(eventArgs.Error); } } } }
public void LoginTest() { HomePage.ClickOnLogin("*****@*****.**", "*****@*****.**"); Assert.AreEqual("Avinash", AfterLogin.getTitle()); AfterLogin.LoggedOut(); Assert.AreEqual("Welcome to Facebook - Log In, Sign Up or Learn More", HomePage.getTitle()); }
private void btnBackToLogin_Click(object sender, RoutedEventArgs e) { gameTime.Stop(); playTime = 0; AfterLogin main = new AfterLogin(); App.Current.MainWindow = main; this.Close(); main.Show(); }
// Use this for initialization void Start() { afterlogin = AfterLogin.GetComponent <AfterLogin> (); pageNumber = 1; gc = GC.GetComponent <GameController> (); player = Player.GetComponent <CharacterScript> (); jumpingText.gameObject.SetActive(false); pointsText.gameObject.SetActive(false); pointslogo.gameObject.SetActive(false); collectText.gameObject.SetActive(false); ipadlogo.gameObject.SetActive(false); }
// Use this for initialization void Start() { Time.timeScale = 1f; menuAudio = GameObject.Find("Soundtrack").GetComponent <AudioSource> (); gameAudio = GameObject.Find("gameSountrack").GetComponent <AudioSource> (); afterlog = AfterLog.GetComponent <AfterLogin> (); menuAudio.Stop(); canJump = true; timeForRun = 999999999; timePlayed = 0; StartCoroutine(countOneSecond()); hightScoreText.gameObject.SetActive(false); usernameText.gameObject.SetActive(false); tryAgainScreen.SetActive(false); pointsWhenLost.gameObject.SetActive(false); QuitButton.gameObject.SetActive(false); FinalQuitButton.gameObject.SetActive(false); Loading.gameObject.SetActive(false); usernameText.text = LoadLevel.profile.firstname; character = GameObject.Find("Player").GetComponent <CharacterScript> (); TotalPoints = 0; if (PlayerPrefs.HasKey("HighScore")) { HighScore = PlayerPrefs.GetFloat("HighScore"); hightScoreText.text = ("High Score: ") + Mathf.Round(HighScore).ToString(); } else if (deleteData == true) { HighScore = 0; } oneHundred.gameObject.SetActive(false); pointsText.text = 0.ToString(); numberOfTries = 0; wantToTryAgain = false; }