Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
EnableDisable Data Manipulation Buttons
Message
 
À
20/10/2003 13:16:47
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
00840362
Message ID:
00840387
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform