コード例 #1
0
 public override string ToString()
 {
     if (type == CommandTypes.Change)
     {
         return(type.ToString() + ", " + sensor.ToString() + ";" + value);
     }
     else
     {
         return(type.ToString());
     }
 }
コード例 #2
0
ファイル: Command.cs プロジェクト: gilind/workshop
        public Command(FileManager manager, IPathInfo[] operands, int expectedOperandCount, CommandTypes commandType)
        {
            if (operands.Length != expectedOperandCount)
                throw new CommandFormatException(commandType.ToString());

            _manager = manager;
            _operands = operands;
            _commandType = commandType;
        }
コード例 #3
0
ファイル: Command.cs プロジェクト: gilind/workshop
        public Command(FileManager manager, IPathInfo[] operands, int expectedOperandCount, CommandTypes commandType)
        {
            if (operands.Length != expectedOperandCount)
            {
                throw new CommandFormatException(commandType.ToString());
            }

            _manager     = manager;
            _operands    = operands;
            _commandType = commandType;
        }