/// <summary> /// Choose file to edite /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripComboBox2_SelectedIndexChanged(object sender, EventArgs e) { if (!(initialLoad)) { ToolStripComboBox editFile = (ToolStripComboBox)sender; FileHandling.EditFile(editFile.SelectedItem.ToString()); } }
/// <summary> /// Choose file to load /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripComboBox1_SelectedIndexChanged(object sender, EventArgs e) { string file = toolStripComboBox1.SelectedItem.ToString(); labelAnswer.Clear(); FileHandling.LoadFile(file); Display(); this.toolStripStatusLabel4.Text = "Word Units from: " + (toolStripComboBox1.SelectedItem.ToString()); }
private void jumbledToolStripMenuItem_Click(object sender, EventArgs e) { if (alphabetical) { FileHandling.ShuffleGenericList <String>(); alphabetical = false; this.alphabeticalStatusLabel.Image = new Bitmap(MedTermsFlashCardApplication.Properties.Resources.jumbled); } }
private void AlphabeticalToolStripMenuItem2_Click(object sender, EventArgs e) { if (!(alphabetical)) { FileHandling.AlphabeticalList(); alphabetical = true; Display(); this.alphabeticalStatusLabel.Image = new Bitmap(MedTermsFlashCardApplication.Properties.Resources.alphabetical); } }
private void Display() { this.labelCount.Text = FileHandling.Count().ToString(); showTermArray = FileHandling.ShowTerm(out termIndex, termIndex); labelTerm.Text = showTermArray[0].ToString(); if (showTermArray[0].ToString() == "Congratulations!") { labelAnswer.Text = showTermArray[1].ToString(); //labelAnswer.Visible = true; // Set the alignment of the text that follows. labelAnswer.SelectionAlignment = HorizontalAlignment.Center; } }
private void buttonGotIt_Click(object sender, EventArgs e) { FileHandling.RemoveWordFromList(termIndex); labelAnswer.Clear(); Display(); }