예제 #1
0
        private void addToNameList(RebateData s)
        {
            // design the listviewItem
            ListViewItem item = new ListViewItem(s.getFirstName()); // first name

            item.SubItems.Add(s.getLastName());                     // add last name into column
            item.SubItems.Add(s.getPhoneNumber());                  // add phone number into column
            nameList.Items.Add(item);                               // add the item into listview
        }
예제 #2
0
 private void setLabels(RebateData d)
 {
     // set all UI labels to the correct data base on d
     firstNameText.Text = d.getFirstName();
     if (d.getMiddleName().Equals(' '))
     {
         middleNameText.Text = "";
     }
     else
     {
         middleNameText.Text = $"{d.getMiddleName()}";
     }
     lastNameText.Text     = d.getLastName();
     addressText1.Text     = d.getAddressLine1();
     addressText2.Text     = d.getAddressLine2();
     cityText.Text         = d.getCity();
     stateText.Text        = d.getState();
     zipCodeText.Text      = d.getZipCode();
     genderText.Text       = $"{d.getGender()}";;
     phoneNumber.Text      = d.getPhoneNumber();
     emailAddressText.Text = d.getEmailAddress();
     proofChecker.Checked  = d.getProofPurchased();
     dateTimePicker1.Value = d.getDateRecieve();
 }