void showSalesCodeEntry()
        {
            PasscodeForm f = new PasscodeForm();

            f.ShowDialog();

            if (f.cancel == false)
            {
                PasscodeForm f2 = new PasscodeForm();
                f2.ShowDialog();

                if (f2.cancel == false)
                {
                    if (f.codedInputResult == f2.codedInputResult)
                    {
                        ignore = true;
                        requireCodeToSellBox.Checked = true;
                        ignore      = false;
                        newSellCode = f.codedInputResult;
                    }
                    else
                    {
                        MessageBox.Show("Error - those two codes were not the same.");
                    }
                }
            }
        }
예제 #2
0
        private void yesButton_Click(object sender, EventArgs e)
        {
            if (Program.theDatabase.giftLockCode != "")
            {
                PasscodeForm f = new PasscodeForm();
                f.ShowDialog();

                if (f.cancel || f.codedInputResult != Program.theDatabase.giftLockCode)
                {
                    return;
                }
            }
            success = true;
            this.Close();
        }