Ejemplo n.º 1
0
        private void newWordButton_Click(object sender, EventArgs e)
        {
            AddWordWindow addWordWindow = new AddWordWindow();

            addWordWindow.firstLanguage      = dictionary.Columns[0].Text;
            addWordWindow.secondLanguage     = dictionary.Columns[1].Text;
            addWordWindow.OnOKButtonPressed += AddNewItemToDictionary;
            addWordWindow.ShowDialog();
        }
Ejemplo n.º 2
0
        private void addWordMenuEntry_Click(object sender, EventArgs e)
        {
            AddWordWindow addWordWindow = new AddWordWindow();

            addWordWindow.englishWord.Text    = addWordMenuEntry.Text.Split(' ')[1];
            addWordWindow.englishWord.Enabled = false;
            addWordWindow.firstLanguage       = dictionary.Columns[0].Text;
            addWordWindow.secondLanguage      = dictionary.Columns[1].Text;
            addWordWindow.OnOKButtonPressed  += AddNewItemToDictionary;
            addWordWindow.ShowDialog();
        }