Re: Validation and Undo
- From: "Joanna Carter [TeamB]" <joanna@xxxxxxxxxxxx>
- Date: Thu, 15 Dec 2005 20:45:02 -0000
"John Richardson" <j3richarson@xxxxxxxxx> a écrit dans le message de news:
%235aRukaAGHA.2644@xxxxxxxxxxxxxxxxxxxxxxx
| But, as the user edits a field, the control itself offers a Validation
| event, which is hinting at a Transaction at the control level. So, a
Field
| transaction should be viewed as beginning when the control is focused,
| ending when the control is unfocused, and I would think that a cancel
should
| be implemented by ESC, or some other commonly understood method.
|
| For some reason, I figured this was a default behaviour of the Control
| object, but it is not. In my view, this behaviour is fairly natural
| assumption... it makes more sense than say the SHIFT-SPACE behaviour on
the
| datagrid, that is for sure.
FMPOV, the Validating event in the Control class fits very well into the
Model View Presenter framework as it is a response to a user interaction
trying to quit editing a value.
The edit is a means of entering data that will be passed to the underlhying
data member. The Validating event gives the program an opportunity to
interrupt the flow of data to the data member and prompt the edit to refresh
itself to the, as yet unchanged, underlying data member.
Joanna
--
Joanna Carter [TeamB]
Consultant Software Engineer
.
- Follow-Ups:
- Re: Validation and Undo
- From: John Richardson
- Re: Validation and Undo
- References:
- Validation and Undo
- From: John Richardson
- Re: Validation and Undo
- From: Nicholas Paldino [.NET/C# MVP]
- Re: Validation and Undo
- From: John Richardson
- Re: Validation and Undo
- From: Joanna Carter [TeamB]
- Re: Validation and Undo
- From: John Richardson
- Validation and Undo
- Prev by Date: Re: Change IP address programatically?
- Next by Date: Re: Generics questions in .NET 2.0
- Previous by thread: Re: Validation and Undo
- Next by thread: Re: Validation and Undo
- Index(es):
Relevant Pages
|