Пример #1
0
        public void ChangeFpErrorCodeOwner(RouteStationFailure failure)
        {
            var currentFpHolder = AllProcessFailures.FirstOrDefault(f => f.IsFpErrorCode);

            if (currentFpHolder == null)
            {
                currentFpHolder = Failures.FirstOrDefault(f => f.IsFpErrorCode);
            }

            if (currentFpHolder != null)
            {
                currentFpHolder.IsFpErrorCode = false;
            }

            failure.IsFpErrorCode = true;
        }