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. C#
  4. Improve Project

Improve Project

Scheduled Pinned Locked Moved C#
helpquestiondatabasecode-review
11 Posts 3 Posters 0 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.
  • L Lost User

    There is no technical problem or error in my project. This question is about how improve my project to be more user friendly. Let me explain about my project: There are many tables in DB and I have created a CRUD Form for each table; There is Form that contains some buttons and every button opens a single CRUD Form. Now imagine that user want to register an student and the user is very busy because of large number of students; so the user should open and close many of Form from the board just for entering a single student's information. Do you have any idea to improve my project?

    Meysam

    P Offline
    P Offline
    PIEBALDconsult
    wrote on last edited by
    #2

    Have separate "Save and Close" and "Save and add another" buttons?

    L 1 Reply Last reply
    0
    • P PIEBALDconsult

      Have separate "Save and Close" and "Save and add another" buttons?

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #3

      You know that in DB there is a table for each existence. Person, PhoneType, Phone, Register, Class, Teacher, etc; and for each of them there is a CRUD Form. If one of them will cancel so I would cancel all of the insertion before the current Form. Did you get what I mean? In other word I should update all of them if the last Form's DialogResult equals DialogResult.OK and reject all changes if it is DialogResult.Cancel.

      Meysam

      P 1 Reply Last reply
      0
      • L Lost User

        You know that in DB there is a table for each existence. Person, PhoneType, Phone, Register, Class, Teacher, etc; and for each of them there is a CRUD Form. If one of them will cancel so I would cancel all of the insertion before the current Form. Did you get what I mean? In other word I should update all of them if the last Form's DialogResult equals DialogResult.OK and reject all changes if it is DialogResult.Cancel.

        Meysam

        P Offline
        P Offline
        PIEBALDconsult
        wrote on last edited by
        #4

        Meysam Tolouee wrote:

        Did you get what I mean?

        No. But now I get the feeling that what you have is quite dreadful. I'm glad you're trying to improve it.

        L 1 Reply Last reply
        0
        • L Lost User

          There is no technical problem or error in my project. This question is about how improve my project to be more user friendly. Let me explain about my project: There are many tables in DB and I have created a CRUD Form for each table; There is Form that contains some buttons and every button opens a single CRUD Form. Now imagine that user want to register an student and the user is very busy because of large number of students; so the user should open and close many of Form from the board just for entering a single student's information. Do you have any idea to improve my project?

          Meysam

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #5

          Meysam Tolouee wrote:

          I have created a CRUD Form for each table

          That is a very bad idea; it's not how the user thinks of the task and the schema should not be so exposed to the user. I also fear for what happens when the user deletes records improperly (not that delete should be allowed anyway).

          L 1 Reply Last reply
          0
          • P PIEBALDconsult

            Meysam Tolouee wrote:

            Did you get what I mean?

            No. But now I get the feeling that what you have is quite dreadful. I'm glad you're trying to improve it.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #6

            Let's go forward step by step. First the user will open and enter personal info about the first student in CustomerUI then he/she will close that. Now the entries will update at FormClosing by user's confirmation. Second step the user is going to enter information about class registration. Now consider that the student doesn't want to register any more. At thiss time there is a record in "Person" table in DB that is useless. Was it clear?

            Meysam

            1 Reply Last reply
            0
            • P PIEBALDconsult

              Meysam Tolouee wrote:

              I have created a CRUD Form for each table

              That is a very bad idea; it's not how the user thinks of the task and the schema should not be so exposed to the user. I also fear for what happens when the user deletes records improperly (not that delete should be allowed anyway).

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #7

              I know and it is the reason that I want to improve my project for.

              Meysam

              1 Reply Last reply
              0
              • L Lost User

                There is no technical problem or error in my project. This question is about how improve my project to be more user friendly. Let me explain about my project: There are many tables in DB and I have created a CRUD Form for each table; There is Form that contains some buttons and every button opens a single CRUD Form. Now imagine that user want to register an student and the user is very busy because of large number of students; so the user should open and close many of Form from the board just for entering a single student's information. Do you have any idea to improve my project?

                Meysam

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #8

                Meysam Tolouee wrote:

                This question is about how improve my project to be more user friendly.

                Have you considered asking your users[^]? Joel also has a nice article on dogfooding, well worth the read.

                Bastard Programmer from Hell :suss: if you can't read my code, try converting it here[^]

                1 Reply Last reply
                0
                • L Lost User

                  There is no technical problem or error in my project. This question is about how improve my project to be more user friendly. Let me explain about my project: There are many tables in DB and I have created a CRUD Form for each table; There is Form that contains some buttons and every button opens a single CRUD Form. Now imagine that user want to register an student and the user is very busy because of large number of students; so the user should open and close many of Form from the board just for entering a single student's information. Do you have any idea to improve my project?

                  Meysam

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #9

                  Sounds like you’re talking about a “transaction”. Instead of multiple forms, it seems like a single form with multiple “tabs” of related information would be more effective. Use the form to create a transaction for registering the student by first storing all data that is entered “locally”; in a local copy of the database or as XML on a local drive. Cancelling the transaction is simple; you don’t commit to the “production” database and just delete the local copy. If the transaction is complete and the student is to be registered, you post all the local data to the server in one step and then delete the local copy.

                  L 1 Reply Last reply
                  0
                  • L Lost User

                    Sounds like you’re talking about a “transaction”. Instead of multiple forms, it seems like a single form with multiple “tabs” of related information would be more effective. Use the form to create a transaction for registering the student by first storing all data that is entered “locally”; in a local copy of the database or as XML on a local drive. Cancelling the transaction is simple; you don’t commit to the “production” database and just delete the local copy. If the transaction is complete and the student is to be registered, you post all the local data to the server in one step and then delete the local copy.

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #10

                    I like your idea and I am going to try it. Thanks.

                    Meysam

                    1 Reply Last reply
                    0
                    • L Lost User

                      There is no technical problem or error in my project. This question is about how improve my project to be more user friendly. Let me explain about my project: There are many tables in DB and I have created a CRUD Form for each table; There is Form that contains some buttons and every button opens a single CRUD Form. Now imagine that user want to register an student and the user is very busy because of large number of students; so the user should open and close many of Form from the board just for entering a single student's information. Do you have any idea to improve my project?

                      Meysam

                      R Offline
                      R Offline
                      RobCroll
                      wrote on last edited by
                      #11

                      I'd implement a menu bar &/or a toolbar. So no matter where the user is in the app (unless in a modal form) they can add a student quickly by selecting the "Add Student..." menu item. I would also include a shortcut for the menu item. I would add all the common tasks a user needs in the menu bar.

                      "You get that on the big jobs."

                      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