예제 #1
0
        private GXAjaxCommand GetCommand(GXAjaxCommand cmd)
        {
            int cIdx = commands.IndexOf(cmd);

            if (cIdx > 0)
            {
                return(commands[cIdx]);
            }
            return(null);
        }
예제 #2
0
        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));
        }
예제 #3
0
        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;
            }
        }