Esempio n. 1
0
        private void MainForm_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.Control && e.Alt && e.KeyCode == Keys.Enter)
            {
                if (Celar_DB.Visible)
                {
                    Celar_DB.Visible = false;
                }
                else
                {
                    Celar_DB.Visible = true;
                }
            }

            if (e.KeyCode == Keys.Escape)
            {
                add_word.Focus();
            }

            if (e.KeyCode == Keys.A)
            {
                AddWord editWord = new AddWord();
                editWord.ShowDialog();
            }
        }
Esempio n. 2
0
        private void Add_Click(object sender, EventArgs e)
        {
            AddWord editWord = new AddWord();

            editWord.ShowDialog();
        }