예제 #1
0
        private void RemoveWord()
        {
            DataGridViewSelectedCellCollection selectedRow = dataGridViewEdit.SelectedCells;

            List <string> translations = new List <string>();

            foreach (DataGridViewCell cell in selectedRow)
            {
                translations.Add(cell.Value.ToString().ToLower());
            }

            Word wordToRemove = new Word(translations.ToArray());

            WinFormsHelper.Remove(CurrentList, wordToRemove);

            RefreshLoadedList();

            EditButtonsSwitch();
        }