public void Unregister()
 {
     using (var fa = FileAssociatorFactory.GetAppRegisterer(DocTypePrefix, ProgramName))
     {
         fa.Unregister();
     }
 }
 public void Register(string regPath,
                      string defaultIcon,
                      string openCommand,
                      string localizedAppName,
                      string localizedAppDescription,
                      IEnumerable <DocTypeInfo> docTypes)
 {
     using (var fa = FileAssociatorFactory.GetAppRegisterer(DocTypePrefix, ProgramName))
     {
         fa.Register(regPath, defaultIcon, openCommand, localizedAppName, localizedAppDescription, docTypes);
     }
 }