예제 #1
0
 // ------------------- Button2_Click -------------------------------
 // NewAccount button clicked.
 private void Button2_Click(object sender, EventArgs e)
 {
     NewAccountWasClicked = true;
     if (NewAccountClick != null)
     {
         AccountPromptEventArgs args = new AccountPromptEventArgs( );
         args.CancelClick = true;
         args.PromptInfo  = FillNewAccountPromptInfo( );
         NewAccountClick(this, args);
     }
 }
예제 #2
0
        // ------------------- Button1_Click -------------------------------
        // ( Child control events like this one are called after LoadPostData. )
        // login button clicked.
        private void Button1_Click(object sender, EventArgs e)
        {
            LoginWasClicked = true;

            // there is an event handler in the code which implements this control.
            if (LoginClick != null)
            {
                AccountPromptEventArgs args = new AccountPromptEventArgs( );
                args.LoginClick = true;
                args.PromptInfo = FillNewAccountPromptInfo( );
                LoginClick(this, args);
            }
        }