private void FixupInputFileHistory(InputFileHistory previousValue)
        {
            if (previousValue != null && previousValue.InputFileErrors.Contains(this))
            {
                previousValue.InputFileErrors.Remove(this);
            }

            if (InputFileHistory != null)
            {
                if (!InputFileHistory.InputFileErrors.Contains(this))
                {
                    InputFileHistory.InputFileErrors.Add(this);
                }
                if (InputFileHistoryCode != InputFileHistory.Code)
                {
                    InputFileHistoryCode = InputFileHistory.Code;
                }
            }
        }
Exemple #2
0
        private void FixupInputFileHistory(InputFileHistory previousValue)
        {
            if (previousValue != null && previousValue.ProviderOrganisations.Contains(this))
            {
                previousValue.ProviderOrganisations.Remove(this);
            }

            if (InputFileHistory != null)
            {
                if (!InputFileHistory.ProviderOrganisations.Contains(this))
                {
                    InputFileHistory.ProviderOrganisations.Add(this);
                }
                if (CurrentValidatedFileCode != InputFileHistory.Code)
                {
                    CurrentValidatedFileCode = InputFileHistory.Code;
                }
            }
            else if (!_settingFK)
            {
                CurrentValidatedFileCode = null;
            }
        }