Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# .NET WPF MVVM
Hi Folks ,
I need to build an application using which reads data from hardware continously and updates the same in the User Interface.
I need some inputs on how to architect such application
 

I have this AutoDriver(.NET Wrapper) which has API to read data
Im planning to use MVVM framework.Is it a good idea to use MVVM for such applications?
Do I need to write a service to read the data ??
 

Please advice me on how to handle such applications.
Posted 30-Nov-12 23:38pm
Comments
Programm3r at 3-Dec-12 8:47am
   
Hi - yes I would say using MVVM is a good idea. Secondly, I see no need to write a service to read the data from the hardware. Why not write a layer between your View Model and the hardware. This way you ViewModel could listen for data and push it (thought the binding framework) to your View.
rajeshlokayata at 4-Dec-12 12:35pm
   
Hi Thanks for the inputs given.
I have to load the application after boot-up it is kiosk kinda application.So i will be loading the view .But how to invoke the layer (between your View Model and the hardware as suggested by you.
Im sorry my question might sound stupid but it is my first undertaking such applications.
Any help regarding this would be of great help again.
Programm3r at 5-Dec-12 0:42am
   
So .... this application has no user input? Because it sounds like it should run without any user input. If this is the case, then I have totally misunderstood your question. Secondly, if no user input is required and it should start-up 'on its own', then MVVM won't be the way to go - I would create a windows service for that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 210
1 Richard MacCutchan 100
2 kbrandwijk 90
3 ProgramFOX 80
4 Mukesh Bhagat 65
0 Sergey Alexandrovich Kryukov 9,050
1 OriginalGriff 8,151
2 CPallini 2,613
3 Richard MacCutchan 2,221
4 Abhinav S 1,928


Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 1 Dec 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100