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
 public void InitializeComponent() {
     if (_contentLoaded) {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ERP;component/Views/Login/RegistrationForm.xaml", System.UriKind.Relative));
     this.busyIndicator = ((ERP.Controls.BusyIndicator)(this.FindName("busyIndicator")));
     this.registerForm = ((ERP.Controls.CustomDataForm)(this.FindName("registerForm")));
     this.registerButton = ((System.Windows.Controls.Button)(this.FindName("registerButton")));
     this.registerCancel = ((System.Windows.Controls.Button)(this.FindName("registerCancel")));
     this.backToLogin = ((System.Windows.Controls.HyperlinkButton)(this.FindName("backToLogin")));
 }
Esempio n. 2
0
 public void InitializeComponent()
 {
     if (_contentLoaded)
     {
         return;
     }
     _contentLoaded = true;
     System.Windows.Application.LoadComponent(this, new System.Uri("/ERP;component/Views/Login/LoginForm.xaml", System.UriKind.Relative));
     this.busyIndicator = ((ERP.Controls.BusyIndicator)(this.FindName("busyIndicator")));
     this.loginForm     = ((ERP.Controls.CustomDataForm)(this.FindName("loginForm")));
     this.loginButton   = ((System.Windows.Controls.Button)(this.FindName("loginButton")));
     this.loginCancel   = ((System.Windows.Controls.Button)(this.FindName("loginCancel")));
     this.registerNow   = ((System.Windows.Controls.HyperlinkButton)(this.FindName("registerNow")));
 }