Exemple #1
0
        /// <summary>
        /// Command index used when reading and writing.
        /// </summary>
        /// <param name="commands">The commands.</param>
        public int Index(List <SequenceCommand> commands)
        {
            int ind = m_Index;

            if (ReferenceCommand != null)
            {
                if (ReferenceCommand.Index(commands) != -1)
                {
                    ind = ReferenceCommand.Index(commands);
                }
            }
            return(ind);
        }
 /// <summary>
 /// Command index used when reading and writing.
 /// </summary>
 /// <param name="commands">The commands.</param>
 public int Index(List <SequenceCommand> commands)
 {
     return(ReferenceCommand == null ? m_Index : ReferenceCommand.Index(commands));
 }