Example #1
0
 public WordPanel( IDictionary<object, object> word, bool? showEnglish = null )
 {
     this.WordProperties = word;
     this.Content = GuiUtils.WrapToBorder(
         word.IsLiteralText() ?
             CreateForLiteral( word.Text() ) :
             CreateForHanyu( HanyuWord, showEnglish.HasValue ? showEnglish.Value : HanyuWord.KnownLevel < 2 ) );
 }