コード例 #1
0
 private void HandleTfsCommunicationError(object sender, ErrorEventArgs e)
 {
     if (StatusService != null)
     {
         StatusService.EnqueueStatusItem("TfsCommunicationError");
     }
 }
コード例 #2
0
 private void HandleAutoConnectFailure(object sender, ErrorEventArgs e)
 {
     // Remove event handlers registered for Auto connect
     TaskboardService.Connected             -= HandleAutoConnectSucess;
     TaskboardService.ConnectionFailed      -= HandleAutoConnectFailure;
     TaskboardService.TfsCommunicationError -= HandleAutoConnectFailure;
     OnConnectCompleted();
     IsConnecting = false;
 }
コード例 #3
0
 private void HandleConnectionFailed(object sender, ErrorEventArgs e)
 {
     // disconnect on connect error
     ConfigurationFileName = null;
     TaskboardService.Disconnect();
     EnsureConfigurationModel();
     OnPropertyChanged("IsConnected");
     SelectedWorkItem = null;
     OnConnectCompleted();
     IsConnecting = false;
     // TODO: Visualize the issue
 }