void viewCurrentDeck() { if (question.Count > 0) { viewDeck seeDeck = new viewDeck(question, answer, priority, this); seeDeck.Enabled = true; seeDeck.ShowDialog(); } else { question.Add("Question"); answer.Add("Answer"); priority.Add(0); viewDeck seeDeck = new viewDeck(question, answer, priority, this); seeDeck.Enabled = true; seeDeck.ShowDialog(); } }
private void revealAnswerToolStripMenuItem_Click(object sender, EventArgs e) { if (question.Count > 0) { doNext(); } else { textBox1.Text = "No deck is currently loaded. Load a deck, or create a new one."; question.Add("Question"); answer.Add("Answer"); priority.Add(0); viewDeck seeDeck = new viewDeck(question, answer, priority, this); seeDeck.Enabled = true; seeDeck.ShowDialog(); } }