Example #1
0
 /// <summary>
 /// "Clone" only the bits of metadata that the user can modify in Glyssen.
 /// </summary>
 public void CopyGlyssenModifiableSettings(GlyssenDblTextMetadata source)
 {
     ProjectStatus                       = source.ProjectStatus;
     FontFamily                          = source.FontFamily;
     FontSizeInPoints                    = source.FontSizeInPoints;
     Language.ScriptDirection            = source.Language.ScriptDirection;
     CharacterGroupGenerationPreferences = source.CharacterGroupGenerationPreferences;
     foreach (var book in AvailableBooks)
     {
         var sourceProjectBook = source.AvailableBooks.FirstOrDefault(b => book.Code == b.Code);
         if (sourceProjectBook != null)
         {
             book.IncludeInScript = sourceProjectBook.IncludeInScript;
         }
     }
 }