Exemplo n.º 1
0
        public override ApplicationAction Append(ApplicationAction value)
        {
            if (value.ActionType == ActionType.SendKey)
            {
                AddKey(value as KeyInput);
            }

            return(this);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 public override bool CanAppend(ApplicationAction value)
 {
     return (value.ActionType == ActionType.SendKey);
 }
Exemplo n.º 4
0
        public override ApplicationAction Append(ApplicationAction value)
        {
            if (value.ActionType == ActionType.SendKey)
            AddKey(value as KeyInput);

              return this;
        }
Exemplo n.º 5
0
 public override bool CanAppend(ApplicationAction value)
 {
     return(true);
 }
Exemplo n.º 6
0
 public override ApplicationAction Append(ApplicationAction value)
 {
     return(this);
 }
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 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);
Exemplo n.º 11
0
 public override bool CanAppend(ApplicationAction value)
 {
     return true;
 }
Exemplo n.º 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;
        }
Exemplo n.º 13
0
 public override ApplicationAction Append(ApplicationAction value)
 {
     return this;
 }
Exemplo n.º 14
0
 public override bool CanAppend(ApplicationAction value)
 {
     return(value.ActionType == ActionType.SendKey);
 }