示例#1
0
		/// <summary>
		/// Удаление задержки
		/// </summary>
		/// <param name="delay"></param>
		public static void RemoveDelay(GKDelay delay)
		{
			Delays.Remove(delay);
			delay.InputDependentElements.ForEach(x =>
			{
				x.OutputDependentElements.Remove(delay);
			});

			delay.OutputDependentElements.ForEach(x =>
			{
				x.InputDependentElements.Remove(delay);
				x.UpdateLogic(DeviceConfiguration);
				x.OnChanged();
			});

			delay.OnChanged();
		}
示例#2
0
		/// <summary>
		/// Изменение задержки
		/// </summary>
		/// <param name="delay"></param>
		public static void EditDelay(GKDelay delay)
		{
			delay.OutputDependentElements.ForEach(x => x.OnChanged());
			delay.OnChanged();
		}