ATMLManagerLibrary.managers.ErrorManager.GatherErrorMessages C# (CSharp) Method

GatherErrorMessages() public static method

public static GatherErrorMessages ( Form parentForm ) : ICollection
parentForm System.Windows.Forms.Form
return ICollection
        public static ICollection<string> GatherErrorMessages(Form parentForm)
        {
            ICollection<ErrorProvider> errorProviders = new List<ErrorProvider>();
            ICollection<string> errorList = new List<string>();
            GetErrorProviders( parentForm, errorProviders );
            GetErrorMessages(parentForm, errorList, errorProviders);
            return errorList;
        }