We added this functionality to our aBusinessForm class (subclass of mmBusinessForm)
public enum EditMode
{
Editing,
Adding
}
...
public class aBusinessForm : mmBusinessForm
{
protected EditMode _mode = EditMode.Editing
...
Maybe if everyone asks for it, Kevin will succumb and add it to the framework.
>Hi ,
>
>Has anyone implemented a EnableDisable method for data manipulation buttons ( ADD SAVE etc) on a winform?
>
>I have found if very useful to maintain and EDIT state for a winforms so various form level methods and events can function differently according to the MODE of the form.
>
>Add mode could be set in the ADD button method and the textchanged event of bound controls appears to be where the user EDIT could be trapped. I’m still exploring various approaches but would like to hear how others have implemented this behavior in the MM.Net.
>
>Thanks in Advance,
>
>Terry Carroll