Esempio n. 1
0
 /// <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());
     }
 }
Esempio n. 2
0
        /// <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());
        }
Esempio n. 3
0
 private void jumbledToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (alphabetical)
     {
         FileHandling.ShuffleGenericList <String>();
         alphabetical = false;
         this.alphabeticalStatusLabel.Image = new Bitmap(MedTermsFlashCardApplication.Properties.Resources.jumbled);
     }
 }
Esempio n. 4
0
 private void AlphabeticalToolStripMenuItem2_Click(object sender, EventArgs e)
 {
     if (!(alphabetical))
     {
         FileHandling.AlphabeticalList();
         alphabetical = true;
         Display();
         this.alphabeticalStatusLabel.Image = new Bitmap(MedTermsFlashCardApplication.Properties.Resources.alphabetical);
     }
 }
Esempio n. 5
0
        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;
            }
        }
Esempio n. 6
0
 private void buttonGotIt_Click(object sender, EventArgs e)
 {
     FileHandling.RemoveWordFromList(termIndex);
     labelAnswer.Clear();
     Display();
 }