예제 #1
0
        // 读取下一个字符
        private byte GetNextByte()
        {
            try
            {
                if (EndOfCode)
                {
                    return(0);
                }

                OldRowIndex = RowIndex;
                OldColIndex = ColIndex;

                if (ColIndex >= mCodeManager.GetCodeLength(RowIndex))
                {
                    RowIndex++;
                    ColIndex = 0;
                }

                if (RowIndex >= mCodeManager.GetCodeCount())
                {
                    EndOfCode = true;
                    return(0);
                }

                byte b = mCodeManager.GetCodeByte(new URank(RowIndex, ColIndex));
                ColIndex++;

                return(b);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }
예제 #2
0
 public void Execute()
 {
     mRemovedCharacter = mCodeManager.GetCodeByte(mPosition);
     mCodeManager.RemoveCharacter(mPosition);
 }
예제 #3
0
        public void Execute()
        {
            mOldCharacter = mCodeManager.GetCodeByte(mPosition);

            mCodeManager.ReplaceCharacter(mPosition, mNewCharacter);
        }