/// <summary> /// Event Handler to subscribed event 'RelativePerformanceGridClickEvent' /// </summary> /// <param name="relativePerformanceGridCellData">RelativePerformanceGridCellData</param> public void HandleRelativePerformanceGridClickEvent(RelativePerformanceGridCellData filter) { string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name); Logging.LogBeginMethod(logger, methodNamespace); try { if (filter != null) { if (checkValue.CountryID != filter.CountryID || checkValue.SectorID != filter.SectorID) { checkValue = filter; Logging.LogMethodParameter(logger, methodNamespace, filter, 1); if (effectiveDateInfo != null && portfolioSelectionDataInfo != null && Period != null && IsActive) { dbInteractivity.RetrieveRelativePerformanceSecurityActivePositionData(portfolioSelectionDataInfo, Convert.ToDateTime(effectiveDateInfo), periodInfo, RetrieveRelativePerformanceSecurityActivePositionDataCallbackMethod, filter.CountryID, filter.SectorID); BusyIndicatorStatus = true; } } } else { Logging.LogMethodParameterNull(logger, methodNamespace, 1); } } catch (Exception ex) { Prompt.ShowDialog("Message: " + ex.Message + "\nStackTrace: " + Logging.StackTraceToString(ex), "Exception", MessageBoxButton.OK); Logging.LogException(logger, ex); } Logging.LogEndMethod(logger, methodNamespace); }
/// <summary> /// Event Handler to subscribed event 'RelativePerformanceGridCountrySectorClickEvent' /// </summary> /// <param name="relativePerformanceGridCellData">RelativePerformanceGridCellData</param> public void HandleRelativePerformanceGridCountrySectorClickEvent(RelativePerformanceGridCellData relativePerformanceGridCellData) { string methodNamespace = String.Format("{0}.{1}", GetType().FullName, System.Reflection.MethodInfo.GetCurrentMethod().Name); Logging.LogBeginMethod(logger, methodNamespace); try { if (relativePerformanceGridCellData != null) { Logging.LogMethodParameter(logger, methodNamespace, relativePerformanceGridCellData, 1); if (EffectiveDate != null && portfolioSelectionDataInfo != null) { if (relativePerformanceGridCellData.SectorID == null) { dbInteractivity.RetrieveRelativePerformanceSecurityData(portfolioSelectionDataInfo, Convert.ToDateTime(effectiveDateInfo), periodInfo, RetrieveRelativePerformanceSecurityDataCallbackMethod, relativePerformanceGridCellData.CountryID, relativePerformanceGridCellData.SectorID); } else if (relativePerformanceGridCellData.CountryID == null) { dbInteractivity.RetrieveRelativePerformanceSecurityData(portfolioSelectionDataInfo, Convert.ToDateTime(effectiveDateInfo), periodInfo, RetrieveRelativePerformanceSecurityDataCallbackMethod, relativePerformanceGridCellData.CountryID, relativePerformanceGridCellData.SectorID); } BusyIndicatorNotification(true); } } else { Logging.LogMethodParameterNull(logger, methodNamespace, 1); } } catch (Exception ex) { Prompt.ShowDialog("Message: " + ex.Message + "\nStackTrace: " + Logging.StackTraceToString(ex), "Exception", MessageBoxButton.OK); Logging.LogException(logger, ex); } Logging.LogEndMethod(logger, methodNamespace); }