protected override void CreateChildControls() { this.LoginFieldTemplate.Add(new TextField { PlaceHolder = string.IsNullOrEmpty(this.LoginPlaceHolderText) ? "Login" : this.LoginPlaceHolderText }); this.LoginFieldTemplate.Add(new PasswordField { PlaceHolder = string.IsNullOrEmpty(this.PasswordPlaceHolderText) ? "Senha" : this.PasswordPlaceHolderText }); this.LoginFieldTemplate.Add(new Literal()); foreach (var item in this.LoginFieldTemplate) { this.Controls.Add(item); } var loginButton = new LoginButton(); loginButton.Text = string.IsNullOrEmpty(this.OkButtonText) ? "Login" : this.OkButtonText; loginButton.Click += loginButton_Click; this.Controls.Add(loginButton); }
protected override void CreateChildControls() { this.LoginFieldTemplate.Add(new TextField { PlaceHolder = string.IsNullOrEmpty(this.LoginPlaceHolderText) ? "Login" : this.LoginPlaceHolderText }); this.LoginFieldTemplate.Add(new PasswordField { PlaceHolder = string.IsNullOrEmpty(this.PasswordPlaceHolderText) ? "Senha" : this.PasswordPlaceHolderText }); this.LoginFieldTemplate.Add(new Literal()); foreach (var item in this.LoginFieldTemplate) this.Controls.Add(item); var loginButton = new LoginButton(); loginButton.Text = string.IsNullOrEmpty(this.OkButtonText) ? "Login" : this.OkButtonText; loginButton.Click += loginButton_Click; this.Controls.Add(loginButton); }