コード例 #1
0
ファイル: CreditForm2.cs プロジェクト: bmsmith/NSA-Sandwich
        private void button1_Click(object sender, EventArgs e)
        {
            receiptFinal form = new receiptFinal(receipt);

            form.Show();
            Close();
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (emailReceiptCheck.Checked && String.IsNullOrEmpty(emailAddressText.Text))
            {
                checkLabel.Text = "Enter email address!";
            }

            else
            {
                email = emailAddressText.Text;

                if (emailReceiptCheck.Checked)
                {
                    sendReceipt();
                }

                receiptFinal form = new receiptFinal(receipt.ToString());
                form.Show();
                Close();
            }
        }