private async void buttonAddWordPriority_Click(object sender, EventArgs e)
        {
            CheckLanguageIsSelected();
            ForeignWord foreignWord = new ForeignWord();

            if (foreignWord.ShowDialog() == DialogResult.OK)
            {
                await Controller.AddWordPriorities(foreignWord.wordPriorities);
                await PopulateWordPriorities();
            }
        }
 private async void dataGridViewWordPriorities_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (e.ColumnIndex == 2)
     {
         ForeignWord foreignWord = new ForeignWord(dataGridViewWordPriorities[e.ColumnIndex, e.RowIndex].Value.ToString());
         if (foreignWord.ShowDialog() == DialogResult.OK)
         {
             await Controller.UpdateWordsPriorities(foreignWord.wordPriorities);
             await PopulateWordPriorities();
         }
     }
 }