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. The Lounge
  3. Not a programing question

Not a programing question

Scheduled Pinned Locked Moved The Lounge
designcsharpdatabasewpfgame-dev
8 Posts 5 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.
  • C Offline
    C Offline
    CS2011
    wrote on last edited by
    #1

    i am making a SW for one of the hospital in my area and my confutation is about the UI related. I have two option as per my design. either i can send a complete Menu from my control layer to UI and inject the full menu control in my Main Host App or pass a XML with details like name and module to load and create a menu in my Host App and display it. Both has their pros and cons. but i am bit confuse about which option is better. Just need some third party view on this. Which option do you guys think is better EDIT: i am using WPF and prism with Unity bootstrapped and sql express as backed. Access to different module can be configured in XML

    R L Richard DeemingR 3 Replies Last reply
    0
    • C CS2011

      i am making a SW for one of the hospital in my area and my confutation is about the UI related. I have two option as per my design. either i can send a complete Menu from my control layer to UI and inject the full menu control in my Main Host App or pass a XML with details like name and module to load and create a menu in my Host App and display it. Both has their pros and cons. but i am bit confuse about which option is better. Just need some third party view on this. Which option do you guys think is better EDIT: i am using WPF and prism with Unity bootstrapped and sql express as backed. Access to different module can be configured in XML

      R Offline
      R Offline
      Ravi Bhavnani
      wrote on last edited by
      #2

      I recommend the XML form as this will make it easier to extend your server (service) to support UIs on other platforms (e.g. mobile) in the future. /ravi

      My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

      C 1 Reply Last reply
      0
      • R Ravi Bhavnani

        I recommend the XML form as this will make it easier to extend your server (service) to support UIs on other platforms (e.g. mobile) in the future. /ravi

        My new year resolution: 2048 x 1536 Home | Articles | My .NET bits | Freeware ravib(at)ravib(dot)com

        C Offline
        C Offline
        CS2011
        wrote on last edited by
        #3

        Thanks. For I input. Even I was thinking the same.

        1 Reply Last reply
        0
        • C CS2011

          i am making a SW for one of the hospital in my area and my confutation is about the UI related. I have two option as per my design. either i can send a complete Menu from my control layer to UI and inject the full menu control in my Main Host App or pass a XML with details like name and module to load and create a menu in my Host App and display it. Both has their pros and cons. but i am bit confuse about which option is better. Just need some third party view on this. Which option do you guys think is better EDIT: i am using WPF and prism with Unity bootstrapped and sql express as backed. Access to different module can be configured in XML

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

          I second Ravi's suggestion, the app that displays the menu should decide how it wants to do it.

          C 1 Reply Last reply
          0
          • C CS2011

            i am making a SW for one of the hospital in my area and my confutation is about the UI related. I have two option as per my design. either i can send a complete Menu from my control layer to UI and inject the full menu control in my Main Host App or pass a XML with details like name and module to load and create a menu in my Host App and display it. Both has their pros and cons. but i am bit confuse about which option is better. Just need some third party view on this. Which option do you guys think is better EDIT: i am using WPF and prism with Unity bootstrapped and sql express as backed. Access to different module can be configured in XML

            Richard DeemingR Offline
            Richard DeemingR Offline
            Richard Deeming
            wrote on last edited by
            #5

            Since you're using WPF, why not do it the MVVM way? http://wpftutorial.net/Menus.html[^] http://www.julmar.com/blog/programming/using-mvvm-with-menus-in-wpf/[^]


            "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

            "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

            C 1 Reply Last reply
            0
            • L Lost User

              I second Ravi's suggestion, the app that displays the menu should decide how it wants to do it.

              C Offline
              C Offline
              CS2011
              wrote on last edited by
              #6

              well even i was thinking the same but in future i wanted to extend the functionality to third party also. As you know my plane is to provide not only the menu but the action also. in case of plain xml it's become really easy for anyone to manipulate the data which i don't want. I guess I'll have to come up with some encrypted XML to avoid the data manipulation situation.

              K 1 Reply Last reply
              0
              • Richard DeemingR Richard Deeming

                Since you're using WPF, why not do it the MVVM way? http://wpftutorial.net/Menus.html[^] http://www.julmar.com/blog/programming/using-mvvm-with-menus-in-wpf/[^]


                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                C Offline
                C Offline
                CS2011
                wrote on last edited by
                #7

                Thanks for links. I am following the MVVM only. My question is somewhat related to How my Model View will populate the Model from data which is receives from say a service.

                1 Reply Last reply
                0
                • C CS2011

                  well even i was thinking the same but in future i wanted to extend the functionality to third party also. As you know my plane is to provide not only the menu but the action also. in case of plain xml it's become really easy for anyone to manipulate the data which i don't want. I guess I'll have to come up with some encrypted XML to avoid the data manipulation situation.

                  K Offline
                  K Offline
                  kmoorevs
                  wrote on last edited by
                  #8

                  CS2011 wrote:

                  encrypted XML

                  I had a need not long ago for storing FTP credentials for remote customers to use in our applications. The applications read these from an XML document that is available on our public web site. The credentials are encrypted, then converted to ascii (3 digits per char) to avoid problems with invalid characters. These are stored under unassuming tag names. Works great, and would prevent tampering.

                  "Go forth into the source" - Neal Morse

                  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