예제 #1
0
        private void speak()
        {
            Speaker spkr   = new Speaker();
            string  ipWord = WordsFileHandler.getWords();

            spkr.Speak(ipWord, ApplicationContext);
        }
예제 #2
0
        private void ConfirmDeleteAll(object sender, EventArgs e)
        {
            AlertDialog.Builder alert = new AlertDialog.Builder(this);
            alert.SetTitle("Confirm Delete");
            alert.SetMessage("Delete all words?");
            alert.SetPositiveButton("Delete", (senderAlert, args) => {
                WordsFileHandler.writeWords("");
            });

            alert.SetNegativeButton("Cancel", (senderAlert, args) => {
                return;
            });

            Dialog dialog = alert.Create();

            dialog.Show();
        }
예제 #3
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            SetContentView(Resource.Layout.Test);

            words = new WordsCollection(WordsFileHandler.GetWordsList());

            curWord = GetNextWord(words);

            nextButton        = FindViewById <Button>(Resource.Id.nextWordBtn);
            nextButton.Text   = "First Word";
            nextButton.Click += NextButtonClick;

            repeatButton        = FindViewById <Button>(Resource.Id.repeatWordBtn);
            repeatButton.Click += RepeatButtonClick;

            quitButton        = FindViewById <Button>(Resource.Id.quitBtn);
            quitButton.Click += QuitButtonClick;
        }
예제 #4
0
 private void writeWordToFile(object sender, EventArgs e)
 {
     WordsFileHandler.appendWord(addWordTv.Text);
     addWordTv.Text = "";
 }