Start() public method

Starts the method in a new thread.
public Start ( ) : void
return void
Esempio n. 1
0
        /// <summary>
        /// Event: The login button has been clicked
        /// </summary>
        private void Button_Login_Click(object sender, EventArgs e)
        {
            // Diable constrols and show message
            Label_Status.Visible = true;
            Label_Status.Text    = "Logging in...";
            SetControlsEnabled(false);

            ThreadedMethod tMethod = new ThreadedMethod(login);

            tMethod.Start();
        }
Esempio n. 2
0
        /// <summary>
        /// Event: The 'Add this account' button has been clicked.
        /// </summary>
        private void Button_AddThisAccount_Click(object sender, EventArgs e)
        {
            // Disable controls
            SetControlsEnabled(false);

            // Show 'please wait' message
            Label_Status.Visible = true;

            // Start verifyAccount() in a new thread
            ThreadedMethod tMethod = new ThreadedMethod(verifyAccount);

            tMethod.Start();
        }
        /// <summary>
        /// Event: The login button has been clicked
        /// </summary>
        private void Button_Login_Click(object sender, EventArgs e)
        {
            // Diable constrols and show message
            Label_Status.Visible = true;
            Label_Status.Text = "Logging in...";
            SetControlsEnabled(false);

            ThreadedMethod tMethod = new ThreadedMethod(login);
            tMethod.Start();
        }
        /// <summary>
        /// Event: The 'Add this account' button has been clicked.
        /// </summary>
        private void Button_AddThisAccount_Click(object sender, EventArgs e)
        {
            // Disable controls
            SetControlsEnabled(false);

            // Show 'please wait' message
            Label_Status.Visible = true;

            // Start verifyAccount() in a new thread
            ThreadedMethod tMethod = new ThreadedMethod(verifyAccount);
            tMethod.Start();
        }
 private void TextBox_ContactsName_TextChanged(object sender, EventArgs e)
 {
     ThreadedMethod tMethod = new ThreadedMethod(UpdateContactName);
     tMethod.Start();
 }
        private void TextBox_ContactsName_TextChanged(object sender, EventArgs e)
        {
            ThreadedMethod tMethod = new ThreadedMethod(UpdateContactName);

            tMethod.Start();
        }