Пример #1
0
		private void AddAction(ActionBase agg)
		{
			if (agg == null) return;
			var combinator = agg as ActionCombinator;
			if ((combinator?.Actions.HasAny()).GetValueOrDefault(false))
			{
				this.Actions.AddRange(combinator.Actions);
			}
			else this.Actions.Add(agg);
		}
Пример #2
0
 public ActionCombinator(ActionBase left, ActionBase right) : base(null)
 {
     this.AddAction(left);
     this.AddAction(right);
 }
Пример #3
0
		public ActionCombinator(ActionBase left, ActionBase right) : base(null)
		{
			this.AddAction(left);
			this.AddAction(right);
		}