public List <ListItemNotification> GetItemNotificationsList(object item) { SetItem(item); List <ListItemNotification> notificationsList = new List <ListItemNotification>(); if (PageViewMode != General.eRIPageViewMode.Add) { ListItemNotification inputInd = new ListItemNotification(); inputInd.AutomationID = "inputInd"; inputInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Input; inputInd.ToolTip = "Input " + GingerDicser.GetTermResValue(eTermResKey.Variable); inputInd.BindingObject = mVariable; inputInd.BindingFieldName = nameof(VariableBase.SetAsInputValue); inputInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(inputInd); ListItemNotification outputInd = new ListItemNotification(); outputInd.AutomationID = "outputInd"; outputInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Output; outputInd.ToolTip = "Output " + GingerDicser.GetTermResValue(eTermResKey.Variable); outputInd.BindingObject = mVariable; outputInd.BindingFieldName = nameof(VariableBase.SetAsOutputValue); outputInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(outputInd); ListItemNotification linkedInd = new ListItemNotification(); linkedInd.AutomationID = "linkedInd"; linkedInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Link; linkedInd.ToolTip = string.Format("{0} is linked to other {0}", GingerDicser.GetTermResValue(eTermResKey.Variable)); linkedInd.BindingObject = mVariable; linkedInd.BindingFieldName = nameof(VariableBase.LinkedVariableName); linkedInd.BindingConverter = new StringVisibilityConverter(); notificationsList.Add(linkedInd); ListItemNotification publishInd = new ListItemNotification(); publishInd.AutomationID = "publishInd"; publishInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Share; publishInd.ToolTip = string.Format("{0} is marked to be Published to third party applications", GingerDicser.GetTermResValue(eTermResKey.Variable)); publishInd.BindingObject = mVariable; publishInd.BindingFieldName = nameof(RepositoryItemBase.Publish); publishInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(publishInd); ListItemNotification sharedRepoInd = new ListItemNotification(); sharedRepoInd.AutomationID = "sharedRepoInd"; sharedRepoInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.SharedRepositoryItem; sharedRepoInd.ToolTip = string.Format("{0} source is from Shared Repository", GingerDicser.GetTermResValue(eTermResKey.Variable)); sharedRepoInd.ImageForeground = Brushes.Orange; sharedRepoInd.BindingObject = mVariable; sharedRepoInd.BindingFieldName = nameof(VariableBase.IsSharedRepositoryInstance); sharedRepoInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(sharedRepoInd); } return(notificationsList); }
public List <ListItemNotification> GetItemNotificationsList(object item) { SetItem(item); List <ListItemNotification> notificationsList = new List <ListItemNotification>(); ListItemNotification simulationInd = new ListItemNotification(); simulationInd.AutomationID = "simulationInd"; simulationInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Simulate; simulationInd.ToolTip = "Action support Simulation mode"; simulationInd.ImageSize = 14; simulationInd.BindingObject = mAction; simulationInd.BindingFieldName = nameof(Act.SupportSimulation); simulationInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(simulationInd); ListItemNotification flowControlInd = new ListItemNotification(); flowControlInd.AutomationID = "flowControlInd"; flowControlInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.MapSigns; flowControlInd.ToolTip = "Action contains Flow Control conditions"; flowControlInd.ImageSize = 14; flowControlInd.BindingObject = mAction; flowControlInd.BindingFieldName = nameof(Act.FlowControlsInfo); flowControlInd.BindingConverter = new StringVisibilityConverter(); notificationsList.Add(flowControlInd); ListItemNotification actionsVarsDepInd = new ListItemNotification(); actionsVarsDepInd.AutomationID = "actionsVarsDepInd"; actionsVarsDepInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.MapSigns; actionsVarsDepInd.ToolTip = string.Format("{0} Actions-{1} dependency is enabled", GingerDicser.GetTermResValue(eTermResKey.Activity), GingerDicser.GetTermResValue(eTermResKey.Variables)); actionsVarsDepInd.ImageSize = 14; actionsVarsDepInd.BindingObject = mContext.Activity; actionsVarsDepInd.BindingFieldName = nameof(Activity.EnableActionsVariablesDependenciesControl); actionsVarsDepInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(actionsVarsDepInd); ListItemNotification outputValuesInd = new ListItemNotification(); outputValuesInd.AutomationID = "outputValuesInd"; outputValuesInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Output; outputValuesInd.ToolTip = "Action contains Output Values"; outputValuesInd.BindingObject = mAction; outputValuesInd.BindingFieldName = nameof(Act.ReturnValuesCount); outputValuesInd.BindingConverter = new OutPutValuesCountConverter(); notificationsList.Add(outputValuesInd); ListItemNotification waitInd = new ListItemNotification(); waitInd.AutomationID = "waitInd"; waitInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Clock; waitInd.ToolTip = "Action contains Wait time before execution starts"; waitInd.BindingObject = mAction; waitInd.BindingFieldName = nameof(Act.WaitVE); waitInd.BindingConverter = new WaitVisibilityConverter(); notificationsList.Add(waitInd); ListItemNotification retryInd = new ListItemNotification(); retryInd.AutomationID = "retryInd"; retryInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Retry; retryInd.ToolTip = "Action configured to Rerun in case of failure"; retryInd.BindingObject = mAction; retryInd.BindingFieldName = nameof(Act.EnableRetryMechanism); retryInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(retryInd); ListItemNotification screenshotInd = new ListItemNotification(); screenshotInd.AutomationID = "screenshotInd"; screenshotInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.Image; screenshotInd.ToolTip = "Action configured to take Screenshot"; screenshotInd.BindingObject = mAction; screenshotInd.BindingFieldName = nameof(Act.TakeScreenShot); screenshotInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(screenshotInd); ListItemNotification sharedRepoInd = new ListItemNotification(); sharedRepoInd.AutomationID = "sharedRepoInd"; sharedRepoInd.ImageType = Amdocs.Ginger.Common.Enums.eImageType.SharedRepositoryItem; sharedRepoInd.ToolTip = "Action source is from Shared Repository"; sharedRepoInd.ImageForeground = Brushes.Orange; sharedRepoInd.BindingObject = mAction; sharedRepoInd.BindingFieldName = nameof(Act.IsSharedRepositoryInstance); sharedRepoInd.BindingConverter = new BoolVisibilityConverter(); notificationsList.Add(sharedRepoInd); return(notificationsList); }