예제 #1
0
        public override ApplicationAction Append(ApplicationAction value)
        {
            if (value.ActionType == ActionType.SendKey)
            {
                AddKey(value as KeyInput);
            }

            return(this);
        }
예제 #2
0
        public override ApplicationAction Append(ApplicationAction value)
        {
            if (value.Empty())
            {
                return(this);
            }

            var added = false;

            if (_input.Count > 0)
            {
                if (_input[_input.Count - 1].CanAppend(value))
                {
                    _input[_input.Count - 1].Append(value);
                    added = true;
                }
            }
            if (!added)
            {
                _input.Add(value);
            }

            return(this);
        }
예제 #3
0
파일: KeyInput.cs 프로젝트: n8o/libcec
 public override bool CanAppend(ApplicationAction value)
 {
     return (value.ActionType == ActionType.SendKey);
 }
예제 #4
0
파일: KeyInput.cs 프로젝트: n8o/libcec
        public override ApplicationAction Append(ApplicationAction value)
        {
            if (value.ActionType == ActionType.SendKey)
            AddKey(value as KeyInput);

              return this;
        }
예제 #5
0
 public override bool CanAppend(ApplicationAction value)
 {
     return(true);
 }
예제 #6
0
 public override ApplicationAction Append(ApplicationAction value)
 {
     return(this);
 }
예제 #7
0
 /// <summary>
 /// Append the given action to this action, and return the combined result
 /// </summary>
 /// <param name="value">The action to append to this one</param>
 /// <returns>The combined result</returns>
 public abstract ApplicationAction Append(ApplicationAction value);
예제 #8
0
 /// <summary>
 /// Checks whether the given action can be appended to this one.
 /// </summary>
 /// <param name="value">The action to check</param>
 /// <returns>True when it can be appended, false otherwise</returns>
 public abstract bool CanAppend(ApplicationAction value);
예제 #9
0
 /// <summary>
 /// Checks whether the given action can be appended to this one.
 /// </summary>
 /// <param name="value">The action to check</param>
 /// <returns>True when it can be appended, false otherwise</returns>
 public abstract bool CanAppend(ApplicationAction value);
예제 #10
0
 /// <summary>
 /// Append the given action to this action, and return the combined result
 /// </summary>
 /// <param name="value">The action to append to this one</param>
 /// <returns>The combined result</returns>
 public abstract ApplicationAction Append(ApplicationAction value);
예제 #11
0
 public override bool CanAppend(ApplicationAction value)
 {
     return true;
 }
예제 #12
0
        public override ApplicationAction Append(ApplicationAction value)
        {
            if (value.Empty())
            return this;

              var added = false;
              if (_input.Count > 0)
              {
            if (_input[_input.Count - 1].CanAppend(value))
            {
              _input[_input.Count - 1].Append(value);
              added = true;
            }
              }
              if (!added)
            _input.Add(value);

              return this;
        }
예제 #13
0
 public override ApplicationAction Append(ApplicationAction value)
 {
     return this;
 }
예제 #14
0
 public override bool CanAppend(ApplicationAction value)
 {
     return(value.ActionType == ActionType.SendKey);
 }