private void HandleTfsCommunicationError(object sender, ErrorEventArgs e) { if (StatusService != null) { StatusService.EnqueueStatusItem("TfsCommunicationError"); } }
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; }
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 }