public static bool ImportDatabase(Stream stream)
        {
            SNPDatabase newDatabase = null;

            if (SNPDatabase.Load(stream, ref newDatabase))
            {
                localDatabase = newDatabase;
                return(true);
            }
            else
            {
                return(false);
            }
        }
 private static SNPDatabase InternalLoadDatabase()
 {
     // Load the default database.
     using (var defaultDatabaseStream = new MemoryStream(Properties.Resources.DefaultSNPDatabase, false))
     {
         SNPDatabase result = null;
         if (SNPDatabase.Load(defaultDatabaseStream, ref result))
         {
             return(result);
         }
         else
         {
             return(new SNPDatabase());
         }
     }
 }