Click here to Skip to main content
15,887,135 members
Home / Discussions / C#
   

C#

 
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 
AnswerRe: create Microsoft Word Document in C# Pin
Alan N26-Mar-10 13:37
Alan N26-Mar-10 13:37 
AnswerRe: create Microsoft Word Document in C# Pin
Richard MacCutchan26-Mar-10 23:07
mveRichard MacCutchan26-Mar-10 23:07 
GeneralRe: create Microsoft Word Document in C# Pin
Jassim Rahma27-Mar-10 12:29
Jassim Rahma27-Mar-10 12:29 
GeneralRe: create Microsoft Word Document in C# Pin
Richard MacCutchan27-Mar-10 21:26
mveRichard MacCutchan27-Mar-10 21:26 
GeneralRe: create Microsoft Word Document in C# Pin
Jassim Rahma28-Mar-10 11:45
Jassim Rahma28-Mar-10 11:45 
GeneralRe: create Microsoft Word Document in C# Pin
Richard MacCutchan28-Mar-10 12:02
mveRichard MacCutchan28-Mar-10 12:02 
QuestionDegrees, minutes and seconds to Decimal Degrees Pin
Darrall26-Mar-10 12:12
Darrall26-Mar-10 12:12 
AnswerRe: Degrees, minutes and seconds to Decimal Degrees Pin
Tarakeshwar Reddy26-Mar-10 12:23
professionalTarakeshwar Reddy26-Mar-10 12:23 

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.