Click here to Skip to main content
15,917,005 members
Home / Discussions / C#
   

C#

 
AnswerRe: Compress a Folder Pin
R. Giskard Reventlov26-Mar-10 22:00
R. Giskard Reventlov26-Mar-10 22:00 
AnswerRe: Compress a Folder Pin
Nuri Ismail26-Mar-10 22:19
Nuri Ismail26-Mar-10 22:19 
AnswerRe: Compress a Folder Pin
harold aptroot26-Mar-10 22:21
harold aptroot26-Mar-10 22:21 
AnswerRe: Compress a Folder Pin
AspDotNetDev26-Mar-10 23:17
protectorAspDotNetDev26-Mar-10 23:17 
AnswerRe: Compress a Folder Pin
AspDotNetDev26-Mar-10 23:21
protectorAspDotNetDev26-Mar-10 23:21 
Questionhow to convert our cheak box button act as a radio button Pin
poonam jagdale26-Mar-10 21:22
poonam jagdale26-Mar-10 21:22 
AnswerRe: how to convert our cheak box button act as a radio button Pin
Abhinav S26-Mar-10 21:31
Abhinav S26-Mar-10 21:31 
AnswerRe: how to convert our cheak box button act as a radio button Pin
dan!sh 26-Mar-10 21:51
professional dan!sh 26-Mar-10 21:51 
Questionbulkcopy.writetoserver() Pin
RajaAhmed26-Mar-10 19:16
RajaAhmed26-Mar-10 19:16 
AnswerRe: bulkcopy.writetoserver() Pin
RajaAhmed26-Mar-10 21:43
RajaAhmed26-Mar-10 21:43 
QuestionDesign Question Pin
programmervb.netc++26-Mar-10 17:24
programmervb.netc++26-Mar-10 17:24 
AnswerRe: Design Question Pin
Luc Pattyn26-Mar-10 17:33
sitebuilderLuc Pattyn26-Mar-10 17:33 
AnswerRe: Design Question Pin
programmervb.netc++26-Mar-10 17:36
programmervb.netc++26-Mar-10 17:36 
GeneralRe: Design Question Pin
Ravi Bhavnani26-Mar-10 20:14
professionalRavi Bhavnani26-Mar-10 20:14 
GeneralRe: Design Question Pin
programmervb.netc++26-Mar-10 21:45
programmervb.netc++26-Mar-10 21:45 
GeneralRe: Design Question Pin
AspDotNetDev26-Mar-10 23:35
protectorAspDotNetDev26-Mar-10 23:35 
MVVM = Model View View-Model

Model = "class" (what holds the data)
View = "ui" (what presents the data)
View-Model = "ui class" (adds properties and such to a model so it plays well with the view)

Of those, the view-model is probably the most difficult to understand. For example, if you had a TreeView (a "view" component) that presented Animals (the model/class), you'd use an AnimalNode that both holds a reference to an Animal (exposing all it's properties) and has properties such as "IsSelected" (a view-centric property that needs to be stored somewhere, in this case on the view-model).

That's the high level... but to answer your question, yes it's a good idea to store data in instances of a class and then present that using a ui. I recommend loading all the data into an intermediate collection on a different thread, then call back to the main thread to present all that data in the view. Depending on the scenario, you may want to present the items in a streaming manner rather than after it's completely loaded (streaming = slower, but user gets first results faster).

AnswerRe: Design Question Pin
PIEBALDconsult27-Mar-10 4:31
mvePIEBALDconsult27-Mar-10 4:31 
Questioncheck for URL problem Pin
Jassim Rahma26-Mar-10 12:42
Jassim Rahma26-Mar-10 12:42 
AnswerRe: check for URL problem Pin
Alan N26-Mar-10 13:22
Alan N26-Mar-10 13:22 
GeneralRe: check for URL problem Pin
Jassim Rahma26-Mar-10 13:26
Jassim Rahma26-Mar-10 13:26 
GeneralRe: check for URL problem Pin
AspDotNetDev26-Mar-10 23:48
protectorAspDotNetDev26-Mar-10 23:48 
GeneralRe: check for URL problem Pin
Jassim Rahma27-Mar-10 12:17
Jassim Rahma27-Mar-10 12:17 
GeneralRe: check for URL problem Pin
AspDotNetDev30-Mar-10 23:12
protectorAspDotNetDev30-Mar-10 23:12 
Questionbullets and numberring in RTF Pin
Jassim Rahma26-Mar-10 12:33
Jassim Rahma26-Mar-10 12:33 
Questioncreate Microsoft Word Document in C# Pin
Jassim Rahma26-Mar-10 12:18
Jassim Rahma26-Mar-10 12:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.