Ejemplo n.º 1
0
        protected void LoadFromTable(DataTable applicationsTable)
        {
            // Iterate through the returned data creating the InstalledApplication instances for each row
            foreach (DataRow row in applicationsTable.Rows)
            {
                try
                {
                    // Create the installed application object
                    InstalledApplication theApplication = new InstalledApplication(row);

                    // Ensure that we add the application to it's Publishers internal list
                    ApplicationPublisher thePublisher = FindPublisher(theApplication.Publisher);
                    if (thePublisher == null)
                    {
                        thePublisher = new ApplicationPublisher(theApplication.Publisher, 0);
                        this.Add(thePublisher);
                    }

                    thePublisher.Add(theApplication);

                    // Read instances of this application
                    //theApplication.LoadData();
                }


                catch (Exception)
                {
                }
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Return a table containing all of the Documents defined for an application
 /// </summary>
 /// <returns></returns>
 public DataTable EnumerateDocuments(InstalledApplication forApplication)
 {
     return(EnumerateDocuments(SCOPE.Application, forApplication.ApplicationID));
 }