Пример #1
0
        public bool Equals(DisplayKanjiModel kanjiView)
        {
            if (Kanji != kanjiView.Kanji)
            {
                return(false);
            }

            if (Chinese != kanjiView.Chinese)
            {
                return(false);
            }

            if (Pronunciation != kanjiView.Pronunciation)
            {
                return(false);
            }

            if (Example != kanjiView.Example)
            {
                return(false);
            }

            if (Gotta != kanjiView.Gotta)
            {
                return(false);
            }
            return(true);
        }
Пример #2
0
 public DisplayKanjiModel(DisplayKanjiModel kanji)
 {
     if (kanji == null)
     {
         return;
     }
     Kanji         = kanji.Kanji;
     Pronunciation = kanji.Pronunciation;
     Chinese       = kanji.Chinese;
     Example       = kanji.Example;
     Gotta         = kanji.Gotta;
 }