Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > a better example app
 

a better example app

<a href="http://devcenter.infragistics.com/RefApps/Tracker/DownloadTracker.Aspx">task vision spin-off</a>

Although I can't stand vb, I really liked this example app.  Well written, I like the ui elements, alot of things.

Any comments?
MigrationUser 1  Wednesday, May 12, 2004 2:08 PM
Nata1,

My only complaint is the fact that it doesn't address the issue of using Datasets correctly?  Instead the author chose to use Arrays?  I do like the different methods used but, I've yet to see a good example of how Microsoft envisioned the usage of datasets in an n-tier type application, especially running as a Web Service.  I really am not fond of having to maintain class objects of all the array types, pumping back and forth from the arrays to the objects, etc.  In my opinion, that creates a ton of code?  Not to mention using the database to hold the change state, etc. much like the datasets should do already?  ;)  Also, the other thing that really gets me is I like to use pre-built controls, with full databinding.  I like to setup styles of datagrids, etc. in the designer rather than through code, etc.  Using a dataset to do this is much more typical than using arrays.  One last thing, I fail to see the lack of adding the tablet component for the purpose of illustration?  If this were an example of setting up an application to support tablet pc, then great, but the more fluff you add to the sample, the more clutter gets involved especially for the new guys that are trying to just simply sort out the simple stuff.  (my 2 cents)

I do agree however that this is a definate plus and help.  Just not the cure all example I am still looking for?

JDog
MigrationUser 1  Wednesday, May 12, 2004 3:30 PM
The old ArrayList or DataSet Question:

I personally like to deal with ArrayLists of objects only.

Using my crude O/R mapper (actually, not that crude, its pretty fast...) (which will be part of the task vision project, in its own dataprovider), all you need to save an object, update an object, get an arrayList of objects, delete an object is supply one attribute (and subclass for now :( ) and you automatically have the methods...

task1.Save();
task1.Delete();

task1.GetAllTasks();

task1.GetAllTasks(int projectID);

(the last two lines show one of my O/R mapper's weaknesses right now.

Dealing with DataRows adds alot of complexity, and assumes I know how the database is structured and that the column names will never get changed by the DB admin.

Now, lets say I want to send an arrayList of Tasks - not locally, but across the wire!

DataSets are the way to go.

I'm thinking, I will want to add support (easy...) to turn an object into a datarow, a datarow into an object, an arrayList of objects into a Dataset, and a Dataset into an arrayList of objects.

How to handle sending only the Tasks that need to be updated?

JDog, or anyone else, this is probably the most interesting topic for me (and ALOT of other people) .  Please post your feedback!


Is there a way to have your cake and eat it too?  Can we deal with ArrayLists of objects AND DataSets?  I think there's an efficient way.  You know how long it took me to write a TaskVision Mod Before I used an o/r mapper (weeks) and after? (hours).

MigrationUser 1  Wednesday, May 12, 2004 6:44 PM

You can use google to search for other answers

Custom Search

More Threads

• Extended exercise of Musical Console Sample from MSDN Download site
• PocketVision fix...
• Provided organisms too large
• [ADO.NET + VB 2005] Master Detail insert - one stored procedure or divided ?
• Where would you place the business logic?
• TaskVisionWS DataSet(xxx).vb
• MissingMethodException at Login
• Multi-part question in regards to functionality
• email encode easy to thwart?
• Modeling ASP.net security