private GXAjaxCommand GetCommand(GXAjaxCommand cmd) { int cIdx = commands.IndexOf(cmd); if (cIdx > 0) { return(commands[cIdx]); } return(null); }
public override bool Equals(object obj) { GXAjaxCommand ajaxCmd = obj as GXAjaxCommand; if (ajaxCmd != null) { if (!CanHaveMany) { return(string.Compare(type, ajaxCmd.Type) == 0); } } return(base.Equals(obj)); }
public void AppendCommand(GXAjaxCommand cmd) { GXAjaxCommand cmd1 = GetCommand(cmd); if (cmd1 == null) { if (allowUIRefresh) { allowUIRefresh = cmd.CanHaveMany; } commands.Add(cmd); } else { cmd1.Data = cmd.Data; } }