private void openToolStripMenuItem_Click(object sender, EventArgs e) { //AskSaveChanges(); OpenFileDialog dialog = new OpenFileDialog(); dialog.Multiselect = false; dialog.Filter = "Bingo Word Files|*.bwf"; dialog.Title = "Select a Bingo Word File to open ..."; if (dialog.ShowDialog() == DialogResult.OK) { string fileName = dialog.FileName; TableBingo = new BingoTable(fileName); refreshAfterFileOpen(); } }
private void wordWizardToolStripMenuItem_Click(object sender, EventArgs e) { WordWizard wordWizard = new WordWizard(); using (wordWizard) { wordWizard.ShowDialog(); } if (wordWizard.DialogResult == DialogResult.OK) { if (wordWizard.words.Count > 0) { TableBingo = new BingoTable(wordWizard.words); } refreshAfterFileOpen(); } }
private void newToolStripButton_Click(object sender, EventArgs e) { AskSaveChanges(true); TableBingo = new BingoTable(5, 5); refreshAfterFileOpen(); }