Beispiel #1
0
        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();

            }
        }
Beispiel #2
0
        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();
            }
        }
Beispiel #3
0
 private void newToolStripButton_Click(object sender, EventArgs e)
 {
     AskSaveChanges(true);
     TableBingo = new BingoTable(5, 5);
     refreshAfterFileOpen();
 }