Exemplo n.º 1
0
 public void Initialize(Entries entries)
 {
     accuracy.text = $"{entries.Accuracy()*100f:F2}%";
     foreach (var entry in entries)
     {
         EntryButton entryDisplay = factory.Get();
         entryDisplay.transform.parent = folder;
         entryDisplay.gameObject.SetActive(true);
         entryDisplay.Initialize(display, entry.Word, entry.Definition, entry.Score);
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 団体名押下イベント
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DantaiNameTextBox_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.Key == Key.Enter)
     {
         if (EntryButton.Visibility == Visibility.Visible)
         {
             EntryButton.Focus();
         }
         if (EntryButton.Visibility == Visibility.Hidden)
         {
             UpdateButton.Focus();
         }
     }
 }