/// <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(); }
/// <summary> /// Изменение задержки /// </summary> /// <param name="delay"></param> public static void EditDelay(GKDelay delay) { delay.OutputDependentElements.ForEach(x => x.OnChanged()); delay.OnChanged(); }