Click here to Skip to main content
15,889,442 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionUrl Image Path in WPF Pin
Pranit Kothari1-Mar-11 8:03
Pranit Kothari1-Mar-11 8:03 
AnswerRe: Url Image Path in WPF Pin
Pete O'Hanlon1-Mar-11 8:54
mvePete O'Hanlon1-Mar-11 8:54 
AnswerRe: Url Image Path in WPF Pin
Pete O'Hanlon1-Mar-11 9:25
mvePete O'Hanlon1-Mar-11 9:25 
QuestionNot able to see my yesterday's question and replies Pin
sr15928-Feb-11 19:46
sr15928-Feb-11 19:46 
AnswerRe: Not able to see my yesterday's question and replies Pin
RobCroll28-Feb-11 21:45
RobCroll28-Feb-11 21:45 
AnswerRe: Not able to see my yesterday's question and replies Pin
Eddy Vluggen28-Feb-11 23:09
professionalEddy Vluggen28-Feb-11 23:09 
AnswerRe: Not able to see my yesterday's question and replies Pin
Abhinav S1-Mar-11 1:02
Abhinav S1-Mar-11 1:02 
QuestionAdding layers Pin
Sander Rossel25-Feb-11 8:19
professionalSander Rossel25-Feb-11 8:19 
I've been programming with .NET for half a year now.
It's all pretty great and fairly easy, but I can't help to think that some classes/components were made to have an extra shell around them.

Take the whole process of connecting and reading/writing data from and to a database.
At the very least we need a Connection object and a Command object and dependent on what you want to do you need a DataReader, DataAdapter, Parameters, CommandBuilders, etc... It seems to me that constantly creating all those objects, configuring them etc. seems like a lot of work. So it would seem to me that it is easier to create a class that requires some parameters in its constructor, has some methods and functions that manage all the just mentioned classes and simply gives a resultset using something like DBClass.Execute.
Basically it would then look something like:
Dim myClass as New DBClass(aString, commandType, connectionString)
myClass.AddParam(name, DBType.Int, value)
Dim result = myClass.Execute ' Or myClass.ExecuteASync!
' Do stuff with the result.


Another example of stuff that just screams for an extra layer around it is the whole printing process.
Have the PrintDialog, PrintPreviewDialog, PageSetupDialog, PrintDocument, maybe PrinterSettings, the whole event thing...
I just want to say:
Dim p as New PrintClass(document)
p.Print ' Or, once again, p.PrintASync! ;)


At this point, is anyone really disagreeing with me?
Or do you really agree and know some other stuff that just calls to be put away in a programmer friendly class? Smile | :)
It's an OO world.

AnswerRe: Adding layers Pin
Not Active25-Feb-11 10:23
mentorNot Active25-Feb-11 10:23 
GeneralRe: Adding layers Pin
Sander Rossel25-Feb-11 12:44
professionalSander Rossel25-Feb-11 12:44 
GeneralRe: Adding layers Pin
Not Active25-Feb-11 13:43
mentorNot Active25-Feb-11 13:43 
GeneralRe: Adding layers Pin
Sander Rossel25-Feb-11 22:20
professionalSander Rossel25-Feb-11 22:20 
GeneralRe: Adding layers Pin
jschell26-Feb-11 13:49
jschell26-Feb-11 13:49 
AnswerRe: Adding layers Pin
Eddy Vluggen25-Feb-11 23:02
professionalEddy Vluggen25-Feb-11 23:02 
GeneralRe: Adding layers Pin
Sander Rossel26-Feb-11 1:03
professionalSander Rossel26-Feb-11 1:03 
GeneralRe: Adding layers Pin
Eddy Vluggen26-Feb-11 6:01
professionalEddy Vluggen26-Feb-11 6:01 
AnswerRe: Adding layers Pin
Richard MacCutchan25-Feb-11 23:13
mveRichard MacCutchan25-Feb-11 23:13 
GeneralRe: Adding layers Pin
Sander Rossel26-Feb-11 1:05
professionalSander Rossel26-Feb-11 1:05 
GeneralRe: Adding layers Pin
Richard MacCutchan26-Feb-11 2:18
mveRichard MacCutchan26-Feb-11 2:18 
GeneralRe: Adding layers Pin
Sander Rossel26-Feb-11 4:06
professionalSander Rossel26-Feb-11 4:06 
GeneralRe: Adding layers Pin
Not Active26-Feb-11 4:55
mentorNot Active26-Feb-11 4:55 
GeneralRe: Adding layers Pin
Richard MacCutchan26-Feb-11 5:39
mveRichard MacCutchan26-Feb-11 5:39 
GeneralRe: Adding layers Pin
jschell26-Feb-11 14:06
jschell26-Feb-11 14:06 
GeneralRe: Adding layers Pin
Richard MacCutchan26-Feb-11 21:35
mveRichard MacCutchan26-Feb-11 21:35 
GeneralRe: Adding layers Pin
jschell27-Feb-11 8:00
jschell27-Feb-11 8:00 

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.