internal static ProjectScanStatuses BindProject(Entities.Project project) { Logger.Create().Debug("BindProjectByType in"); ProjectScanStatuses status = ProjectScanStatuses.CanceledByUser; try { status = LoginAndBindSelectedProject(project); if (status == ProjectScanStatuses.Success) { ShowResultLogic showResultLogic = new ShowResultLogic(); showResultLogic.Act(); status = ProjectScanStatuses.Success; } else if (status == ProjectScanStatuses.CanceledByUser) { //Do nothing... } else { TopMostMessageBox.Show("Unable to retrieve results.", "Error", System.Windows.Forms.MessageBoxButtons.OK); } CommonActionsInstance.getInstance().ClearScanProgressView(); CommonActionsInstance.getInstance().CloseScanProgressView(); } catch (Exception err) { Logger.Create().Error(err); } return(status); }
public void reportWinObject_SelectedScanChanged(long scanId) { try { CommonData.SelectedScanId = scanId; ShowResultLogic showResultLogic = new ShowResultLogic(); showResultLogic.Act(); #region Remarks //Commands2 commands = (Commands2)_applicationObject.Commands; //EnvDTE.Command prevCommand; //prevCommand = commands.Item("CxViewerAction.Connect.ShowResults", 1); //object customin = null, customout = null; //commands.Raise(prevCommand.Guid, prevCommand.ID, ref customin, ref customout); #endregion } catch (Exception ex) { Logger.Create().Error(ex.ToString()); } }