Example #1
0
        void AuthenticateCompleted(AuthenticateCompletedEventArgs e)
        {
            if (e.Result == SmsErrorType.NoError)
            {
                Methods.ShowStandardMsgBox(FormMessageType.Information,"موفیقت","شناسه و رمز عبور وارد شده، صحیح می باشند.");
            }
            else if (e.Result == SmsErrorType.AuthenticationFailed)
            {
                Methods.ShowStandardMsgBox(FormMessageType.Error, "خطا", "شناسه و رمز عبور وارد شده، صحیح نمی باشند.");
            }
            else if (e.Result == SmsErrorType.Others)
            {
                Methods.ShowStandardMsgBox(FormMessageType.Error,"خطا","برقراری ارتباط مقدور نیست.");
            }

            btnAuthentication.Text = "تصدیق هویت";
            btnAuthentication.Enabled = true;
        }
Example #2
0
 static void smsSender1_AuthenticateCompleted(object sender, AuthenticateCompletedEventArgs e)
 {
     Console.WriteLine("YES!!!" + "  " + e.Result);
 }
Example #3
0
 void smsSender_AuthenticateCompleted(object sender, AuthenticateCompletedEventArgs e)
 {
     this.Invoke(new AutheticateCompleted(AuthenticateCompleted),e);
 }
Example #4
0
 private void OnAuthenticateComplete(System.Exception error, SmsErrorType result)
 {
     _authenticateCompeleted = true;
     if (AuthenticateCompleted != null)
     {
         AuthenticateCompletedEventArgs e = new AuthenticateCompletedEventArgs(error) { Result = result };
         AuthenticateCompleted(this, e);
     }
 }