private void addWordButton_Click(object sender, EventArgs e)
        {
            Form addWord = new AddWord(listManager);

            addWord.ShowDialog();
            listManager.saveWords();
            setUpListView();
        }
Beispiel #2
0
        private void newListButton_Click(object sender, EventArgs e)
        {
            errorLabel.Visible = false;
            DialogResult dialogResult =
                MessageBox.Show(
                    "Are you sure you want to make a new list? All information pertaining the old list will be lost.",
                    "Make New List", MessageBoxButtons.YesNo);

            if (dialogResult == DialogResult.Yes)
            {
                listManager.clearAll();
                Form addWord = new AddWord(listManager);
                addWord.ShowDialog();
                listManager.saveWords();
            }
        }