예제 #1
0
 public Addin GetAddin(string id)
 {
     if (currentDomain == AddinDatabase.UnknownDomain)
     {
         return(null);
     }
     return(database.GetInstalledAddin(currentDomain, id));
 }
예제 #2
0
        /// <summary>
        /// Returns an add-in from the registry.
        /// </summary>
        /// <param name="id">
        /// Identifier of the add-in.
        /// </param>
        /// <returns>
        /// The add-in, or 'null' if not found.
        /// </returns>
        /// <remarks>
        /// The add-in identifier may optionally include a version number, for example: "TextEditor.Xml,1.2"
        /// </remarks>
        public Addin GetAddin(string id)
        {
            if (currentDomain == AddinDatabase.UnknownDomain)
            {
                return(null);
            }
            Addin ad = database.GetInstalledAddin(currentDomain, id);

            if (ad != null && IsRegisteredForUninstall(ad.Id))
            {
                return(null);
            }
            return(ad);
        }
예제 #3
0
 public Addin GetAddin(string id)
 {
     return(database.GetInstalledAddin(currentDomain, id));
 }
예제 #4
0
 public Addin GetAddin(string id)
 {
     return(database.GetInstalledAddin(id));
 }