예제 #1
0
 private void OnDataProxyChoices(DataProxyChoicesEvent e)
 {
     if (e.currentEvent.kanji != null)
     {
         if (e.runeType == RuneType.Up)
         {
             DisplayChoices(e.currentEvent.compoundChoices);
         }
     }
     else if (e.currentEvent.compound != null)
     {
         if (e.runeType == RuneType.Up)
         {
             DisplayChoices(e.currentEvent.sentenceChoices);
         }
         else if (e.runeType == RuneType.Down)
         {
             DisplayChoices(e.currentEvent.kanjiChoices);
         }
     }
     else if (e.currentEvent.sentence != null)
     {
         if (e.runeType == RuneType.Down)
         {
             DisplayChoices(e.currentEvent.compoundChoices);
         }
     }
 }
예제 #2
0
 public DataProxySelectionEvent(DataProxyChoicesEvent e, NavType navType)
 {
     this.navType         = navType;
     this.sentence        = e.currentEvent.sentence;
     this.sentenceChoices = e.currentEvent.sentenceChoices;
     this.compound        = e.currentEvent.compound;
     this.compoundChoices = e.currentEvent.compoundChoices;
     this.kanji           = e.currentEvent.kanji;
     this.kanjiChoices    = e.currentEvent.kanjiChoices;
 }