Beispiel #1
0
        private void btnSubmit_Click(object sender, RoutedEventArgs e)
        {
            EntryForm entry = new EntryForm();

            //assigns user entry to variables
            entry.Name    = txtName.Text;
            entry.Address = txtAddress.Text;
            entry.ZipCode = Convert.ToInt32(txtZipcode.Text);

            //creates the application and adds it to a list
            applications.Add(entry);
            lstApplications.Items.Add(entry.ToString());

            //clear textboxes so user can enter another application
            txtName.Clear();
            txtAddress.Clear();
            txtZipcode.Clear();
        }
Beispiel #2
0
        private void btn_Submit_Click(object sender, RoutedEventArgs e)
        {
            EntryForm Applicant = new EntryForm(txtbx_Name.Text, txtbx_Address.Text, Convert.ToInt32(txtbx_Zipcode.Text));

            lbx_ApplicantInfo.Items.Add(Applicant.ToString());
        }