コード例 #1
0
ファイル: EmailClient.cs プロジェクト: WooZoo86/Tallus
 private void pop_AuthenticationBegan(object sender, string userName)
 {
     if (this.statusStrip.InvokeRequired)
     {
         AuthenticateEventHandler auth = new AuthenticateEventHandler(this.pop_AuthenticationBegan);
         this.Invoke(auth, new object[] { sender, userName });
     }
     else
     {
         this.ProgressLabel.Text = "Verifying user name and password";
     }
 }
コード例 #2
0
ファイル: EmailClient.cs プロジェクト: WooZoo86/Tallus
 private void pop_AuthenticationFinished(object sender, string userName)
 {
     if (this.statusStrip.InvokeRequired)
     {
         AuthenticateEventHandler auth = new AuthenticateEventHandler(this.pop_AuthenticationFinished);
         this.Invoke(auth, new object[] { sender, userName });
     }
     else
     {
         this.ProgressLabel.Text = "Verification is completed";
     }
 }
コード例 #3
0
        // other code omitted
        protected virtual void OnAuthenticate(AuthenticateEventArgs e)
        {
            AuthenticateEventHandler handler = this.Authenticate;

            if (handler != null)
            {
                handler(this, e);
            }
            else
            {
                this.AuthenticateUsingMembershipProvider(e);
            }
        }
コード例 #4
0
 private void pop_AuthenticationFinished(object sender, string userName)
 {
     if (this.statusStrip.InvokeRequired)
     {
         AuthenticateEventHandler auth = new AuthenticateEventHandler(this.pop_AuthenticationFinished);
         this.Invoke(auth, new object[] { sender, userName });
     }
     else
     {
         this.ProgressLabel.Text = "Verification is completed";
     }
 }
コード例 #5
0
 private void pop_AuthenticationBegan(object sender, string userName)
 {
     if (this.statusStrip.InvokeRequired)
     {
         AuthenticateEventHandler auth = new AuthenticateEventHandler(this.pop_AuthenticationBegan);
         this.Invoke(auth, new object[] { sender, userName });
     }
     else
     {
         this.ProgressLabel.Text = "Verifying user name and password";
     }
 }