Exemple #1
0
 public PluginInstance(string key, Assembly assembly, Type type, PluginAttribute attribute)
 {
     Key         = key;
     Id          = attribute.Id;
     Name        = attribute.Name;
     Description = attribute.Description;
     ImageLink   = attribute.ImageLink;
     Version     = attribute.Version;
     Author      = attribute.Author;
     _assembly   = assembly;
     _type       = type;
 }
Exemple #2
0
 public PluginInstance(string key, Assembly assembly, Type type, PluginAttribute attribute)
 {
     Key       = key;
     Attribute = attribute;
     Assembly  = assembly;
     _type     = type;
     if (ProgramSettings.Settings.CheckUpdate)
     {
         if (!string.IsNullOrEmpty(attribute.Github) && attribute.Github.Count(c => c == '/') == 2)
         {
             UpdateController.AddUpdate(attribute.Id, new GithubProvider(attribute.Id, attribute.Github, false),
                                        attribute.Version);
         }
     }
 }