Exemplo n.º 1
0
        private void btnCreateTax_Click(object sender, EventArgs e)
        {
            if (tbxOwnersName.Text.Trim() == string.Empty)
            {
                MessageBox.Show("You must provide an owner's name.", "Missing Data", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                tbxOwnersName.Focus();

                //if (nudYear.Value > DateTime.Now)
            }



            AssignInputs();

            aPropertyTax = new PropertyTax(namePropertyOwner, buildingSquareFootage, landSquareFootage, yearBuilt, locationSetting);



            DisplayTax();
        }
Exemplo n.º 2
0
        private void AssignInputs()
        {
            namePropertyOwner     = tbxOwnersName.Text;
            buildingSquareFootage = Convert.ToInt32(nudBuildingSquareFootage.Value);
            landSquareFootage     = Convert.ToInt32(nudLandSquareFootage.Value);
            yearBuilt             = Convert.ToInt32(nudYear.Value);



            if (radCity.Checked)
            {
                locationSetting = LocationType.City;
            }
            else if (radSuburb.Checked)
            {
                locationSetting = LocationType.Suburb;
            }
            else
            {
                locationSetting = LocationType.Rural;
            }

            aPropertyTax = new PropertyTax(namePropertyOwner, buildingSquareFootage, landSquareFootage, yearBuilt, locationSetting);
        }