/// <summary> /// Increase the duration of the effect. /// </summary> /// <param name="aDuration">The duration to add to the effect in ms.</param> public void IncreaseDuration(int aDuration) { if (Timeout != DateTime.MaxValue && !IsElapsed()) { Timeout = Timeout.AddMilliseconds(aDuration); } }