Beispiel #1
0
        /// <summary>
        /// Constructor = this takes a publisher filter and will populate the ApplicationPublisherList
        /// </summary>
        /// <param name="forPublisherFilter"></param>
        public ApplicationPublisherList(string forPublisherFilter, bool includeNotIgnore, bool includeIgnore)
        {
            _forPublisherFilter = forPublisherFilter;

            // Now build the list of applications (for the specified publisher)
            // First get a list of the applications which match the publisher filter
            // We will build the list of Publishers as we go along
            AuditWizardDataAccess lwDataAccess      = new AuditWizardDataAccess();
            DataTable             applicationsTable = lwDataAccess.GetApplications(_forPublisherFilter, includeNotIgnore, includeIgnore);

            LoadFromTable(applicationsTable);
        }
Beispiel #2
0
        /// <summary>
        /// Called to rebuild the application list for this publisher
        /// </summary>
        public void Populate(bool includeIncluded, bool includeIgnore)
        {
            AuditWizardDataAccess lwDataAccess = new AuditWizardDataAccess();

            // First clear any existing entries
            this.Clear();

            // ...then get all applications for this publisher
            DataTable applicationsTable = lwDataAccess.GetApplications(this.Name, includeIncluded, includeIgnore);

            foreach (DataRow row in applicationsTable.Rows)
            {
                InstalledApplication application = new InstalledApplication(row);

                // Load child data for this application
                application.LoadData();

                // ...add to our list
                this.Add(application);
            }
        }