예제 #1
0
 void ws_ResetOperatorPasswordCompleted(object sender, LiveSupport.OperatorConsole.LiveChatWS.ResetOperatorPasswordCompletedEventArgs e)
 {
     if (e.Error != null)
     {
         Trace.TraceError("ws_ResetOperatorPasswordCompleted Error: " + e.Error.Message);
         //TODO: 通知窗体
         return;
     }
     if (AsyncCallCompleted != null)
     {
         AsyncCallCompleted(this, new AsyncCallCompletedEventArg(e));
     }
 }
예제 #2
0
 void OperaterServiceAgent_AsyncCallCompleted(object sender, AsyncCallCompletedEventArg e)
 {
     if (e.Result.GetType() == typeof(LiveSupport.OperatorConsole.LiveChatWS.ResetOperatorPasswordCompletedEventArgs))
     {
         LiveSupport.OperatorConsole.LiveChatWS.ResetOperatorPasswordCompletedEventArgs arg = e.Result as LiveSupport.OperatorConsole.LiveChatWS.ResetOperatorPasswordCompletedEventArgs;
         if (arg.Error == null)
         {
             if (arg.Result == 0)
             {
                 this.Close();
             }
             else if (arg.Result == -1)
             {
                 this.Text = "出现未知错误!";
             }
         }
         else
         {
             this.Text = "网络中断! 请稍候...";
         }
     }
 }