コード例 #1
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
 public LiftSense GetOrMakeSubsense(LiftSense sense, Extensible info, string rawXml)
 {
     return(new LiftSense(info, new Guid(), sense)
     {
         Gloss = new LiftMultiText()
     });
 }
コード例 #2
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
 /// <summary> Adds senses to the entry </summary>
 public void MergeInGloss(LiftSense sense, LiftMultiText multiText)
 {
     foreach (var(key, value) in multiText)
     {
         sense.Gloss.Add(key, value.Text);
     }
 }
コード例 #3
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
            /// <summary> Creates an empty sense object and adds it to the entry </summary>
            public LiftSense GetOrMakeSense(LiftEntry entry, Extensible info, string rawXml)
            {
                var sense = new LiftSense(info, info.Guid, entry)
                {
                    Gloss = new LiftMultiText()
                };

                entry.Senses.Add(sense);
                return(sense);
            }
コード例 #4
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
 public void MergeInPicture(LiftSense sense, string href, LiftMultiText caption)
 {
 }
コード例 #5
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
 public void MergeInDefinition(LiftSense sense, LiftMultiText liftMultiText)
 {
 }
コード例 #6
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
 public LiftObject MergeInReversal(
     LiftSense sense, LiftObject parent, LiftMultiText contents, string type, string rawXml)
 {
     return(new LiftReversal());
 }
コード例 #7
0
ファイル: LiftService.cs プロジェクト: sillsdev/TheCombine
 // The following are unused and are not implemented, but may still be called by the Lexicon Merger
 // They may be useful later if we need to add more complex attributes to words in The Combine
 public LiftExample GetOrMakeExample(LiftSense sense, Extensible info)
 {
     return(new LiftExample {
         Content = new LiftMultiText()
     });
 }