Example #1
0
 private void addWord()
 {
     licenseInfo = new BingoLicense();
             if (licenseInfo.isLicensed == false) {
                 if (data.words.Count >= licenseInfo.maxWordSearchWords) {
                     splash = new SplashScreen(true, "Sorry, the trial version of Word Search Designer\nis limited to " + licenseInfo.maxWordSearchWords + " words at a time.", licenseInfo.isLicensed);
                     using (splash) {
                         splash.ShowDialog();
                         return;
                     }
                 }
             }
             data.words.Add(addNewItemTextBox.Text);
             refreshItemsListBox();
 }
Example #2
0
        private void regeneratePuzzleAndGrid()
        {
            int temp;
                    try {
                        temp = int.Parse(gridSizeTextBox.Text);
                    }
                    catch {
                        MessageBox.Show("Grid Size Must be a Number!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                        return;
                    }
                    licenseInfo = new BingoLicense();
                    if (licenseInfo.isLicensed == false) {
                        if (temp > licenseInfo.gridSize) {
                            temp = licenseInfo.gridSize;
                            gridSizeTextBox.Text = temp.ToString();
                            splash = new SplashScreen(true, "Sorry, the trial version of Word Search Designer\nis limited to a grid size of 15.", licenseInfo.isLicensed);
                            using (splash) {
                                splash.ShowDialog();
                            }
                        }
                    }

                    data.gridSize = temp;

                        regeneratingPuzzleWait wait = new regeneratingPuzzleWait(ref data);
            using (wait)
            {
                wait.ShowDialog();
                //				data.gridSize = int.Parse(gridSizeTextBox.Text);
            }
            this.Refresh();
        }
Example #3
0
        private void WordList_Load(object sender, EventArgs e)
        {
            itemsListBoxToolTip.SetToolTip(this.itemsListBox, "Word will not fit. Try refreshing \nor a larger grid size.");

            licenseInfo = new BingoLicense();
            splash = new SplashScreen(false, licenseInfo.licenseText, licenseInfo.isLicensed);

            Thread splashThread = new Thread(new ThreadStart(showSplashScreen));
            splashThread.Start();
        }
Example #4
0
        private void numberCardsToPrintTextBox_TextChanged(object sender, EventArgs e)
        {
            int numCardsToPrint = -1;
                    if (numberCardsToPrintTextBox.Text == "") {
                        data.numCardsToPrint = 1;
                        return;
                    } //If they clear it out, set it to 1 by default

                    try {
                        numCardsToPrint = int.Parse(numberCardsToPrintTextBox.Text);
                    }
                    catch {
                        numberCardsToPrintTextBox.Text = data.numCardsToPrint.ToString();
                        numCardsToPrint = data.numCardsToPrint;
                        //data.numCardsToPrint = int.Parse(numberCardsToPrintTextBox.Text);
                    }
                    finally {
                        licenseInfo = new BingoLicense();
                        if (licenseInfo.isLicensed == false) {
                            if (numCardsToPrint > licenseInfo.maxWordSearchCardsToPrint) {
                                numCardsToPrint = licenseInfo.maxWordSearchCardsToPrint;
                                splash = new SplashScreen(true, "Sorry, the trial version of Word Search Designer\nis limited to printing " + licenseInfo.maxWordSearchCardsToPrint + " puzzles at a time.", licenseInfo.isLicensed);
                                using (splash) {
                                    splash.ShowDialog();
                                }
                            }
                            data.numCardsToPrint = numCardsToPrint;
                            numberCardsToPrintTextBox.Text = data.numCardsToPrint.ToString();
                        }
                    }
        }