예제 #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();
        }
예제 #2
0
파일: Form1.cs 프로젝트: kfoutz/CIS605
        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);
        }