コード例 #1
0
 /// <summary>Hit when the client finishes logging in.</summary>
 /// <param name="sender">Client</param>
 /// <param name="e">EventArgs</param>
 private void Client_Connection_Authenticate2Completed(object sender, SpiraSoapService.Connection_Authenticate2CompletedEventArgs e)
 {
     if (e.Error == null)
     {
         if (!e.Cancelled)
         {
             //Not canceled, no error.
             this.msgStatus.Text    = "Downloading project list...";
             this.msgStatus.ToolTip = null;
             SpiraSoapService.SoapServiceClient client = (SpiraSoapService.SoapServiceClient)sender;
             client.Project_RetrieveCompleted += new EventHandler <SpiraSoapService.Project_RetrieveCompletedEventArgs>(client_Project_RetrieveCompleted);
             client.Project_RetrieveAsync(this._numRunning++);
         }
         else
         {
             this.msgStatus.Text    = "Connection canceled.";
             this.msgStatus.ToolTip = null;
             this.setDisplayforProgress(false);
         }
     }
     else
     {
         this.msgStatus.Text    = "Error connecting to server.";
         this.msgStatus.ToolTip = e.Error.Message;
         this.setDisplayforProgress(false);
     }
 }