public static void RunSessionLogin(ProgressBar progressVal) { done = false; success = Auth.LogInUsingSession(progressVal); done = true; return; }
private void SessionLoginForm_Load(object sender, EventArgs e) { //logInThread = new Thread(); //SessionLoginFormLogic.LoginThreadsStartFor(this, this.progressBar1); success = Auth.LogInUsingSession(this.progressBar1); if (success) { this.Close(); } else { MessageBox.Show(Auth.error.Message()); this.Close(); } }
private void Method() { //try //{ if (Auth.LogInUsingSession(new ProgressBar())) { ShowAfterLoginScreen(); } else { MessageBox.Show(Auth.error.Message() + " " + Auth.messageToOutterWorld + $"({Auth.messageToOutterWorld.Length})"); } textUsername.Text = UserDataFetcher.GetLastUsedUsername(); //} //catch //{ //throw; //} }