C# Class ERP.Controls.CustomDataForm

Enhances DataForm functionality by using a PasswordBox control for password fields and exposing a CustomDataForm.Fields collection to allow runtime access to DataForm fields.
Inheritance: System.Windows.Controls.DataForm
Mostrar archivo Open project: arthurgfonseca/ERP-Grupo5 Class Usage Examples

Protected Methods

Method Description
IsPasswordProperty ( PropertyInfo propertyInfo ) : bool

Returns whether the given property should be represented by a PasswordBox or not. The default implementation will simply use a naming convention and returns true if the property contains the word "Password".

OnAutoGeneratingField ( System.Windows.Controls.DataFormAutoGeneratingFieldEventArgs e ) : void

Extends DataForm.OnAutoGeneratingField by replacing TextBoxes with PasswordBoxes whenever applicable

Method Details

IsPasswordProperty() protected method

Returns whether the given property should be represented by a PasswordBox or not. The default implementation will simply use a naming convention and returns true if the property contains the word "Password".
protected IsPasswordProperty ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo The entity property being analyzed
return bool

OnAutoGeneratingField() protected method

Extends DataForm.OnAutoGeneratingField by replacing TextBoxes with PasswordBoxes whenever applicable
protected OnAutoGeneratingField ( System.Windows.Controls.DataFormAutoGeneratingFieldEventArgs e ) : void
e System.Windows.Controls.DataFormAutoGeneratingFieldEventArgs
return void