Exemple #1
0
        public void Down(Command cmd)
        {
            int cmdIndex;

            if (false == canDown(cmd, out cmdIndex))
            {
                return;
            }

            int nextIndex = cmdIndex + 1;

            CmdList.Move(cmdIndex, nextIndex);

            down(cmdIndex, nextIndex);
        }
Exemple #2
0
        public void Up(Command cmd)
        {
            int cmdIndex;

            if (false == canUp(cmd, out cmdIndex))
            {
                return;
            }

            int prevIndex = cmdIndex - 1;

            CmdList.Move(cmdIndex, prevIndex);

            up(cmdIndex, prevIndex);
        }