public static void RunSessionLogin(ProgressBar progressVal)
 {
     done    = false;
     success = Auth.LogInUsingSession(progressVal);
     done    = true;
     return;
 }
Exemplo n.º 2
0
 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();
     }
 }
Exemplo n.º 3
0
 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;
     //}
 }