Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Design and Architecture
  4. Phone Numbers Editor

Phone Numbers Editor

Scheduled Pinned Locked Moved Design and Architecture
cssdesignquestion
7 Posts 2 Posters 4 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brady Kelly
    wrote on last edited by
    #1

    I have a simple application that searches on terms like surname or phone number, and then displays results in a grid. Double clicking a row then opens a details edit form for the owner of the phone number. Editing owner details is easy, but I would like some suggestions on editing phone numbers for the owner. If it's a person, there probably is only one phone number, so I have a phone number field on the owner details form. It is populated from the first item in the PhoneNumbers collection for the owner. Now, when a company is the owner of a whole range of numbers, I need to open a separate editor. I would like some commentary on my initial design choice: I have two listboxes, and above them two textboxes. I have three buttons, Add, which adds the number in textbox1 to the left listbox, which shows all numbers for the owner. AddRange, which adds all the numbers in the range from textbox1 to textbox2, and Remove, which removes the selected number from the list on the left to the list on the right. When the user clicks OK, changes are saved - new numbers are added, changed numbers are updated, and removed numbers are deleted. How else could I do this?

    L 1 Reply Last reply
    0
    • B Brady Kelly

      I have a simple application that searches on terms like surname or phone number, and then displays results in a grid. Double clicking a row then opens a details edit form for the owner of the phone number. Editing owner details is easy, but I would like some suggestions on editing phone numbers for the owner. If it's a person, there probably is only one phone number, so I have a phone number field on the owner details form. It is populated from the first item in the PhoneNumbers collection for the owner. Now, when a company is the owner of a whole range of numbers, I need to open a separate editor. I would like some commentary on my initial design choice: I have two listboxes, and above them two textboxes. I have three buttons, Add, which adds the number in textbox1 to the left listbox, which shows all numbers for the owner. AddRange, which adds all the numbers in the range from textbox1 to textbox2, and Remove, which removes the selected number from the list on the left to the list on the right. When the user clicks OK, changes are saved - new numbers are added, changed numbers are updated, and removed numbers are deleted. How else could I do this?

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      Brady Kelly wrote:

      If it's a person, there probably is only one phone number

      :omg: ummmm I have 3

      B 1 Reply Last reply
      0
      • L led mike

        Brady Kelly wrote:

        If it's a person, there probably is only one phone number

        :omg: ummmm I have 3

        B Offline
        B Offline
        Brady Kelly
        wrote on last edited by
        #3

        Of course, I have three as well. One is work, and two cell, oh, plus one fax. I meant that, in the scenario of a person with one number, the first number in their numbers collection is exposed for editing without having to open the numbers collection editor I am trying to design. The first number in the collection will always appear in the single Phone Number field on the Person Details form.

        L 1 Reply Last reply
        0
        • B Brady Kelly

          Of course, I have three as well. One is work, and two cell, oh, plus one fax. I meant that, in the scenario of a person with one number, the first number in their numbers collection is exposed for editing without having to open the numbers collection editor I am trying to design. The first number in the collection will always appear in the single Phone Number field on the Person Details form.

          L Offline
          L Offline
          led mike
          wrote on last edited by
          #4

          I don't care much for the "Details Form" design. I prefer the Visual Studio editing design where you have methods of navigating your domain model, like trees and lists etc., and once you selected the item of interest you use the PropertyGrid for editing the values. This allows you to present a UI where the user can see everything at the same time, no popping up new windows (forms) on top of the previous one. This style of UI gives the user the impression that they are in control rather than the application "controlling the user".

          B 1 Reply Last reply
          0
          • L led mike

            I don't care much for the "Details Form" design. I prefer the Visual Studio editing design where you have methods of navigating your domain model, like trees and lists etc., and once you selected the item of interest you use the PropertyGrid for editing the values. This allows you to present a UI where the user can see everything at the same time, no popping up new windows (forms) on top of the previous one. This style of UI gives the user the impression that they are in control rather than the application "controlling the user".

            B Offline
            B Offline
            Brady Kelly
            wrote on last edited by
            #5

            That's way too involved for this little app. It's a 12 hour quote, and confined to only the functions described.

            L 1 Reply Last reply
            0
            • B Brady Kelly

              That's way too involved for this little app. It's a 12 hour quote, and confined to only the functions described.

              L Offline
              L Offline
              led mike
              wrote on last edited by
              #6

              My mistake. I didn't realize it was a toy program.

              B 1 Reply Last reply
              0
              • L led mike

                My mistake. I didn't realize it was a toy program.

                B Offline
                B Offline
                Brady Kelly
                wrote on last edited by
                #7

                Yes, the editing is essentially a toy. The app is used by a tracing agency primarily to do searches, on name, adress, or phone number, based on a database provided by a third party. Editing the records hardly makes sense, but it was a requirement that I still want to deliver and get paid for.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups