Exemplo n.º 1
0
 private void aboutToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     licenseInfo = new BingoLicense();
     //splash = new SplashScreen(false, licenseInfo.licenseText, licenseInfo.isLicensed);
     using (About aboutBox = new About(licenseInfo.licenseText, licenseInfo.isLicensed))
     {
         aboutBox.ShowDialog();
     }
 }
Exemplo n.º 2
0
 private bool readLicenceFile()
 {
     licenseInfo = new BingoLicense();
     return (licenseInfo.isLicensed);
 }
Exemplo n.º 3
0
 public RegistrationScreen()
 {
     InitializeComponent();
     licenseInfo = new BingoLicense();
 }
Exemplo n.º 4
0
 private void BingoPrintDocument()
 {
     bool printPerformed = TableBingo.PrintBingo.BingoPrintDocument(TableBingo);
     if (printPerformed == true)
     {
         licenseInfo = new BingoLicense();
         if (licenseInfo.isLicensed == false)
         {
             FeatureList features = new FeatureList();
             //splash = new SplashScreen(true, "Thank you for trying Bingo Card Designer.\nThis version will print the same cards for the same word list.\nPurchasing Bingo Card Designer will allow you to print unique cards every time.", licenseInfo.isLicensed);
             using (features)
             {
                 features.ShowDialog();
             }
         }
     }
 }
Exemplo n.º 5
0
 private void verifyNumCardsToPrint()
 {
     licenseInfo = new BingoLicense();
     if (licenseInfo.isLicensed == false)
     {
         if (TableBingo.numCardsToPrint > licenseInfo.maxNumCardsToPrint)
         {
             splash = new SplashScreen(true, "Sorry, the trial version of Bingo Card Designer\nis limited to printing 15 bingo cards.", licenseInfo.isLicensed);
             using (splash)
             {
                 splash.ShowDialog();
             }
             numberCardsToPrintTextBox.Text = licenseInfo.maxNumCardsToPrint.ToString();
             TableBingo.numCardsToPrint = licenseInfo.maxNumCardsToPrint;
         }
     }
 }
Exemplo n.º 6
0
        private void refreshItemsListBox()
        {
            licenseInfo = new BingoLicense();
            /*            if (licenseInfo.isLicensed == false)
            {
                if (TableBingo.items.Count > licenseInfo.maxItems)
                {
                    splash = new SplashScreen(true, "Sorry, the trial version of Bingo Card Designer\nis limited to 25 words.", licenseInfo.isLicensed);
                    using (splash)
                    {
                        splash.ShowDialog();
                    }

                    while (TableBingo.items.Count > licenseInfo.maxItems)
                    {
                        TableBingo.items.RemoveAt(TableBingo.items.Count - 1);
                    }
                }
            } //This is ugliness!*/  //Commented out 25 word limit

            itemsListBox.Items.Clear();
            Regex spaces = new Regex("^ *$");
            foreach (string item in TableBingo.items)
            {
                if (spaces.Match(item) == Match.Empty)
                {
                    itemsListBox.Items.Add(item);
                }
                else
                {
                    itemsListBox.Items.Add("' '");
                }

            }
            NumItemstoolStripStatusLabel.Text = TableBingo.items.Count + " items";
            this.Refresh();
            return;
        }
Exemplo n.º 7
0
 private void helpToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //Hide the registration menu if the app is already registered
     licenseInfo = new BingoLicense();
     if (licenseInfo.isLicensed == true)
     {
         registerToolStripMenuItem.Visible = false;
     }
 }
Exemplo n.º 8
0
        private void BingoWords_Load(object sender, EventArgs e)
        {
            licenseInfo = new BingoLicense();
            splash = new SplashScreen(false, licenseInfo.licenseText, licenseInfo.isLicensed);
            Thread splashThread = new Thread(new ThreadStart(showSplashScreen));
            splashThread.Start();
            refreshItemsListBox();

            //Hide the registration menu if the app is already registered
            licenseInfo = new BingoLicense();
            if (licenseInfo.isLicensed == true)
            {
                registerToolStripMenuItem.Visible = false;
            }
        }