private void speak() { Speaker spkr = new Speaker(); string ipWord = WordsFileHandler.getWords(); spkr.Speak(ipWord, ApplicationContext); }
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(); }
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; }
private void writeWordToFile(object sender, EventArgs e) { WordsFileHandler.appendWord(addWordTv.Text); addWordTv.Text = ""; }