Exemplo n.º 1
0
        private void SaveButton_Click(object sender, EventArgs e)
        {
            if (amountBox.Text == verifyAmountBox.Text)
            {
                if (!string.IsNullOrEmpty(usertypeBox.Text) && !string.IsNullOrEmpty(firstNameBox.Text) && !string.IsNullOrEmpty(lastNameBox.Text) && !string.IsNullOrEmpty(mobileNoBox.Text) && !string.IsNullOrEmpty(mailBox.Text) && !string.IsNullOrEmpty(addressBox.Text) && !string.IsNullOrEmpty(amountBox.Text) && !string.IsNullOrEmpty(paidDateBox.Text) && !string.IsNullOrEmpty(panNoBox.Text))
                {
                    userType  = usertypeBox.Text;
                    firstName = firstNameBox.Text;
                    lastName  = lastNameBox.Text;
                    mobileNo  = mobileNoBox.Text;
                    panno     = panNoBox.Text;
                    email     = mailBox.Text;
                    address   = addressBox.Text;
                    amount    = amountBox.Text;
                    paiddate  = paidDateBox.Text;

                    verifyData verifyData = new verifyData(userType, firstName, lastName, mobileNo, panno, email, address, amount, paiddate);
                    verifyData.Show();
                    resetData();
                }
                else
                {
                    MessageBox.Show("Fill all fields", "Message", MessageBoxButtons.OK);
                }
            }
            else
            {
                MessageBox.Show("Amount mismatch", "Error", MessageBoxButtons.OK);
            }
        }
        private void SaveButton_Click(object sender, EventArgs e)
        {
            userType  = usertypeBox.Text;
            firstName = firstNameBox.Text;
            lastName  = lastNameBox.Text;
            mobileNo  = mobileNoBox.Text;
            panno     = panNoBox.Text;
            email     = mailBox.Text;
            address   = addressBox.Text;
            amount    = amountBox.Text;
            paiddate  = paidDateBox.Text;
            Console.WriteLine(firstName + " " + lastName);
            verifyData verifyData = new verifyData(userType, firstName, lastName, mobileNo, panno, email, address, amount, paiddate);

            verifyData.Show();
        }