public void Initialize(TEFCliSiTefObtemCampoEventArgs obtenCampoEventArgs) { this.obtenCampoEventArgs = obtenCampoEventArgs; this.messageLabel.Text = obtenCampoEventArgs.Titulo; this.textBox.MaxLength = obtenCampoEventArgs.TamanhoMaximo; }
private void TEFCliSiTef_OnObtemCampo(object sender, TEFCliSiTefObtemCampoEventArgs e) { using (InputForm Input = new InputForm()) { Input.Initialize(e); if (Input.ShowDialog().Equals(DialogResult.OK)) { e.Resposta = Input.InputText; } } }