private void AddSuggestActionsTab(ActionsElement actions, HPatternSettings settings) { AddSuggestActions(actions, settings, false,false,true); }
public override void Start() { ActionsElement actionsElement = DialogManager.Instance.actionsElement; actionsElement.SetDialog(this); }
private void AddSuggestActions(ActionsElement actions, HPatternSettings settings,bool trn,bool prt,bool tab) { foreach (SettingsSuggestActionElement act in settings.SuggestActions) { if ((act.SuggestSelection && trn == false && prt == false && tab == false) || (act.SuggestTransaction && trn == true) || (act.SuggestPrompt && prt == true) || (act.SuggestViewTab && tab == true)) { ActionElement action = new ActionElement(); action.Name = act.Name; action.Caption = act.Caption; action.Legend = act.Legend; action.Gxobject = act.Gxobject; action.InGrid = act.InGrid; action.MultiRowSelection = act.MultiRowSelection; action.Image = act.Image; action.DisabledImage = act.DisabledImage; action.Tooltip = act.Tooltip; action.Condition = act.Condition; action.ButtonClass = act.ButtonClass; action.EventCode = act.EventCode; action.CodeEnable = act.CodeEnable; action.Position = act.Position; action.Width = act.Width; action.GridHeight = act.GridHeight; action.GridWidth = act.GridWidth; // Parametros foreach (SettingsSuggestParameterElement par in act.Parameters) { ParameterElement pare = new ParameterElement(); pare.Name = par.Name; pare.Domain = par.Domain; pare.Null = par.Null; action.Parameters.Add(pare); } actions.Add(action); } } }
private void AddSuggestActions(ActionsElement actions, HPatternSettings settings, bool trn) { AddSuggestActions(actions, settings, trn,false,false); }
/// <summary> /// Creates a new instance of the Actions class using the policy actions definition. /// </summary> /// <param name="actions">The policy actions definition.</param> public ActionTargetItems(ActionsElement actions) : base(actions) { }
public static MenuContext get(ActionsElement actions) { return new MenuContext(actions); }
private MenuContext(ActionsElement actions) { mActions = actions; }