// Use this for initialization void Start() { vocabController = GetComponent <VocabController>(); forwardButton = transform.Find("Arrow Right").gameObject; backButton = transform.Find("Arrow Left").gameObject; checkButton = transform.Find("Check").gameObject; DisableBackward(); DisableForward(); }
private void correct3Button_Click(object sender, RoutedEventArgs e) { ToggleVisibility(); VocabController.EvaluateWord(3); if (VocabController.GetNext()) { UpdateView(); } }
public void RoundFinished() { if (MessageBox.Show(AppResources.Again, AppResources.RoundFinished, MessageBoxButton.OKCancel) == MessageBoxResult.OK) { VocabController.LoadLessons(); } else { NavigationService.Navigate(new Uri("/Pages/SelectVocabPage.xaml", UriKind.Relative)); NavigationService.RemoveBackEntry(); NavigationService.RemoveBackEntry(); } }
private void loadLessonsButton_Click(object sender, RoutedEventArgs e) { if (setsListbox.SelectedItems.Count > 0) { GetTypeSelections(); GetSortOrder(); GetGerneralOptions(); List <Lesson> selectedLessons = new List <Lesson>(); foreach (Lesson lesson in setsListbox.SelectedItems) { selectedLessons.Add(lesson); } VocabController.LoadLessons(selectedLessons); if (VocabData.ActiveItems.Count == 0) { VocabController.EndPractice(); VocabController.Deinitialize(); MessageBox.Show(AppResources.NoWordsLeft); return; } NavigationService.Navigate(new Uri("/Pages/PracticeVocabPage.xaml", UriKind.Relative)); setsListbox.SelectedItems.Clear(); } else { MessageBox.Show(AppResources.NoLessonSelected); } }
void Awake() { vocabController = UnityEngine.Object.FindObjectOfType <VocabController>(); text = GetComponent <Text>(); UpdateWord("?"); }
private void PhoneApplicationPage_Unloaded(object sender, RoutedEventArgs e) { VocabController.EndPractice(); VocabController.Deinitialize(); }
void Awake() { vocabController = GameObject.FindObjectOfType <VocabController>(); uiText = GetComponent <Text>(); }