private void listBox1_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (listBox1.SelectedIndex != -1)
     {
         ErrorFix er = new ErrorFix(new MainForm.Mydel2(Translator.ReplaceWord), ErrorWord.get(listBox1.SelectedItem.ToString(), path));
         if (er.ShowDialog() == DialogResult.OK)
         {
             listBox1.Items.RemoveAt(listBox1.SelectedIndex);
         }
         if (listBox1.Items.Count == 0)
         {
             this.Close();
         }
     }
 }
 private void button2_Click(object sender, EventArgs e)
 {
     if (ErrorlistView.SelectedItems.Count > 0)
     {
         String word = ErrorlistView.SelectedItems[0].Tag as string;
         if (word.Contains("IrregularVerbs"))
         {
             ErrorFix er = new ErrorFix(new Mydel2(translators.getIRTranslator(word).ReplaceWord), ErrorWord.get(ErrorlistView.SelectedItems[0].SubItems[0].Text, word));
             er.Show();
         }
         else
         {
             ErrorFix er = new ErrorFix(new Mydel2(translators.getTTranslator(word).ReplaceWord), ErrorWord.get(ErrorlistView.SelectedItems[0].SubItems[0].Text, word));
             er.Show();
         }
     }
 }