Click here to Skip to main content
15,891,248 members
Home / Discussions / C#
   

C#

 
GeneralRe: Webbrowser control print preview not working for background color Pin
Shukra23-Nov-09 17:23
Shukra23-Nov-09 17:23 
AnswerRe: Webbrowser control print preview not working for background color Pin
Ravi Bhavnani23-Nov-09 17:47
professionalRavi Bhavnani23-Nov-09 17:47 
QuestionEmgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Lynndah21223-Nov-09 8:55
Lynndah21223-Nov-09 8:55 
AnswerRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Dave Kreskowiak23-Nov-09 10:18
mveDave Kreskowiak23-Nov-09 10:18 
GeneralRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Lynndah21223-Nov-09 11:14
Lynndah21223-Nov-09 11:14 
GeneralRe: Emgu CV Vs AForge.NET Vs OpenCVDotNet Pin
Dave Kreskowiak23-Nov-09 12:51
mveDave Kreskowiak23-Nov-09 12:51 
QuestionRead and Write a file at the same time? Pin
Tony496623-Nov-09 4:41
Tony496623-Nov-09 4:41 
AnswerRe: Read and Write a file at the same time? Pin
Eddy Vluggen23-Nov-09 4:44
professionalEddy Vluggen23-Nov-09 4:44 
AnswerRe: Read and Write a file at the same time? Pin
PIEBALDconsult23-Nov-09 5:02
mvePIEBALDconsult23-Nov-09 5:02 
GeneralRe: Read and Write a file at the same time? Pin
Tony496623-Nov-09 5:24
Tony496623-Nov-09 5:24 
GeneralRe: Read and Write a file at the same time? Pin
Ghydo23-Nov-09 6:57
Ghydo23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 8:02
dojohansen23-Nov-09 8:02 
GeneralRe: Read and Write a file at the same time? [modified] Pin
abiemann23-Nov-09 12:36
abiemann23-Nov-09 12:36 
GeneralRe: Read and Write a file at the same time? Pin
dojohansen23-Nov-09 23:50
dojohansen23-Nov-09 23:50 
AnswerRe: Read and Write a file at the same time? PinPopular
Alan N23-Nov-09 6:57
Alan N23-Nov-09 6:57 
GeneralRe: Read and Write a file at the same time? Pin
Tony496624-Nov-09 3:53
Tony496624-Nov-09 3:53 
AnswerRe: Read and Write a file at the same time? Pin
Luc Pattyn23-Nov-09 14:04
sitebuilderLuc Pattyn23-Nov-09 14:04 
GeneralRe: Read and Write a file at the same time? Pin
Paulo Zemek24-Nov-09 1:30
mvaPaulo Zemek24-Nov-09 1:30 
QuestionComponents: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 3:55
Wendell.S23-Nov-09 3:55 
AnswerRe: Components: create runtime/designtime bindable property, possible? Pin
The Man from U.N.C.L.E.23-Nov-09 6:45
The Man from U.N.C.L.E.23-Nov-09 6:45 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 7:27
Wendell.S23-Nov-09 7:27 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen23-Nov-09 8:05
dojohansen23-Nov-09 8:05 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 8:56
Wendell.S23-Nov-09 8:56 
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
dojohansen23-Nov-09 9:14
dojohansen23-Nov-09 9:14 
I still don't understand what this has to do with run-time or why you need a bindable property. Are you going to dynamically generate the UI based on the data model? If so, why not just create another text box for the email field and bind the text property of that text box? Or will the data model itself be user-defineable and thus change at run-time?

I also think putting storage logic into a UI component is a bad idea. It will tightly couple the UI to the storage medium, and worse, make it rather harder to maintain the system long term. What if you need to add a different UI layer for portable devices? Or a web service? Or if you want to have a native Windows Forms interface and an asp.net web app interface? What if you decide to add import/export capabilities so you can create Employee or other records from files?

A far better solution in my opinion is to use an object-relational mapper such as NHibernate. Then you'll have a class representing the Employee and use that as the data source for your UI. If you really need to do these things dynamically, you can still do it this way - it's a lot more work obviously, but you could generate both the classes and the NHibernate mappings.

If you want an "employee" UI control a simple user control would suffice, and it could take an Employee instance as data source.
GeneralRe: Components: create runtime/designtime bindable property, possible? Pin
Wendell.S23-Nov-09 17:11
Wendell.S23-Nov-09 17:11 

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.