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

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

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