コード例 #1
0
ファイル: BingoWords.cs プロジェクト: xyzio/bingowords
 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();
     }
 }
コード例 #2
0
 private bool readLicenceFile()
 {
     licenseInfo = new BingoLicense();
     return (licenseInfo.isLicensed);
 }
コード例 #3
0
 public RegistrationScreen()
 {
     InitializeComponent();
     licenseInfo = new BingoLicense();
 }
コード例 #4
0
ファイル: BingoWords.cs プロジェクト: xyzio/bingowords
 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();
             }
         }
     }
 }
コード例 #5
0
ファイル: BingoWords.cs プロジェクト: xyzio/bingowords
 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;
         }
     }
 }
コード例 #6
0
ファイル: BingoWords.cs プロジェクト: xyzio/bingowords
        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;
        }
コード例 #7
0
ファイル: BingoWords.cs プロジェクト: xyzio/bingowords
 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;
     }
 }
コード例 #8
0
ファイル: BingoWords.cs プロジェクト: xyzio/bingowords
        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;
            }
        }