c# sample code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • robert15
    Junior Member
    • Nov 2020
    • 2

    #1

    c# sample code

    Hi, i am trying to convert to streaming. At the moment when i request markets(not streaming), i split the reply into my view models. All good. I an assuming that, with the sample code i subscribe to the market change event, which i have done. Now, what to do with the string, do I split and put this into my view models or is there another(better) way to this, as it is streaming. At the moment im trying the view model route. The reason I ask is that it feels like double handling. Ive got the the string which the esaclient has checked and proccesed, seems strange to then work on the string again. Im using vs2019 wpf c# Regards Robert.
  • bfexplorer
    Senior Member
    • Sep 2018
    • 212

    #2
    Yes, map it to your data model, like I did in my code:

    https://www.youtube.com/watch?v=oNnA1NI_Xps

    Comment

    • robert15
      Junior Member
      • Nov 2020
      • 2

      #3
      Ok, thankyou for replying. I tried messing with the string all afternoon, then discovered that the change event was also returning an object array with all the info i need. Out of interest is it a datagrid your using for ladder display in your other videos. Regards Robert

      Comment

      Working...
      X