Click here to Skip to main content
15,896,539 members
Home / Discussions / C#
   

C#

 
GeneralRe: Installing a Exe Pin
Anil Kumar.Arvapalli11-Nov-10 3:15
Anil Kumar.Arvapalli11-Nov-10 3:15 
GeneralRe: Installing a Exe Pin
Dave Kreskowiak11-Nov-10 3:31
mveDave Kreskowiak11-Nov-10 3:31 
Questionhow to effectively remove background of an image c# Pin
pancakeleh10-Nov-10 20:46
pancakeleh10-Nov-10 20:46 
AnswerRe: how to effectively remove background of an image c# Pin
musefan10-Nov-10 23:18
musefan10-Nov-10 23:18 
GeneralRe: how to effectively remove background of an image c# Pin
pancakeleh11-Nov-10 14:22
pancakeleh11-Nov-10 14:22 
GeneralRe: how to effectively remove background of an image c# Pin
musefan12-Nov-10 2:23
musefan12-Nov-10 2:23 
AnswerRe: how to effectively remove background of an image c# Pin
fjdiewornncalwe12-Nov-10 4:02
professionalfjdiewornncalwe12-Nov-10 4:02 
QuestionMvvm - Validation [modified] Pin
manni198110-Nov-10 20:45
manni198110-Nov-10 20:45 
Hi,

We're trying to figure out validation in the mvvm doing validation in the business logic or model.
I've implemented the validate by exception type in our business logic - a simplified diagram can be found here:
http://util.gubbl.com/imageupload/validate_by_exception.gif[^]

If we've got lot's of inputs that are independent of each other, there is no problem, the exception is thrown, the textbox catches it an marks it's borders red for each wrong input. However, when we've got dependent values we're in trouble.
e.g.
- Value1 and Value2 in the model must not be the same, so we've got a validate function in each of those looking for the equals value and throw an exception if that happens
- now, if we set Value1 to 0 and Value2 to 1 everything is fine
- Value1 gets set in the GUI to 1 --> this one gets marked red, because the validation of the other values is not triggered, so Value2 in the GUI is not marked faulty
- Value2 gets set to 2 in the GUI, now we've reached a valid state, but only Value2 gets validated, so Value1 still is marked as faulty

Is there a common pattern to solve that issue? we don't want to introduce a dependency in the GUI between the two textboxes, because this logic should only be present in the business logic layer.
Instead of implementing the validate by exception one could also implement the IDataErrorInfo interface, but the problem still exists, there is no way to force depending values to validate their values again, at least none that i can see Smile | :)

Any help is appreciated

cheers,
manni

modified on Thursday, November 11, 2010 3:08 AM

QuestionHow can i know what is the bitmap color size of each pixel ? Pin
Yanshof10-Nov-10 20:17
Yanshof10-Nov-10 20:17 
AnswerRe: How can i know what is the bitmap color size of each pixel ? Pin
David Ewen10-Nov-10 21:31
professionalDavid Ewen10-Nov-10 21:31 
AnswerRe: How can i know what is the bitmap color size of each pixel ? Pin
_Erik_11-Nov-10 1:46
_Erik_11-Nov-10 1:46 
Questionhow to generate toolstrip like glossy sky blue color for my forms back color? Pin
Tridip Bhattacharjee10-Nov-10 18:58
professionalTridip Bhattacharjee10-Nov-10 18:58 
QuestionDetecting display setting change like dual display ,resolution change etc. Pin
HalliHaida10-Nov-10 18:26
HalliHaida10-Nov-10 18:26 
AnswerRe: Detecting display setting change like dual display ,resolution change etc. Pin
Luc Pattyn10-Nov-10 23:37
sitebuilderLuc Pattyn10-Nov-10 23:37 
AnswerRe: Detecting display setting change like dual display ,resolution change etc. Pin
_Erik_11-Nov-10 0:05
_Erik_11-Nov-10 0:05 
QuestionNo problem.. just more of "What would you do" question.. Pin
Jacob D Dixon10-Nov-10 11:14
Jacob D Dixon10-Nov-10 11:14 
AnswerRe: No problem.. just more of "What would you do" question.. Pin
_Erik_11-Nov-10 0:44
_Erik_11-Nov-10 0:44 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon11-Nov-10 3:58
Jacob D Dixon11-Nov-10 3:58 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
_Erik_12-Nov-10 3:14
_Erik_12-Nov-10 3:14 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon12-Nov-10 5:30
Jacob D Dixon12-Nov-10 5:30 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
_Erik_12-Nov-10 6:01
_Erik_12-Nov-10 6:01 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon12-Nov-10 11:30
Jacob D Dixon12-Nov-10 11:30 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
Jacob D Dixon14-Nov-10 14:23
Jacob D Dixon14-Nov-10 14:23 
GeneralRe: No problem.. just more of "What would you do" question.. Pin
_Erik_15-Nov-10 3:33
_Erik_15-Nov-10 3:33 
QuestionMonitor the phone state Pin
hoi110-Nov-10 10:39
hoi110-Nov-10 10:39 

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.