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); }
public override bool CanAppend(ApplicationAction value) { return (value.ActionType == ActionType.SendKey); }
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);
public override bool CanAppend(ApplicationAction value) { return true; }
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; }
public override ApplicationAction Append(ApplicationAction value) { return this; }
public override bool CanAppend(ApplicationAction value) { return(value.ActionType == ActionType.SendKey); }