private void indexarFormulario(SqlQueryIts consulta) { if (consulta != null) { txtCodQuery.Text = consulta.CodigoQuery; txtNomeQuery.Text = consulta.NomeQuery; memCorpoQuery.Text = consulta.CorpoQuery; } }
private SqlQueryIts indexarConsulta() { SqlQueryIts cons = new SqlQueryIts() { CodigoQuery = txtCodQuery.Text, NomeQuery = txtNomeQuery.Text, CorpoQuery = memCorpoQuery.Text }; return(cons); }
public XFrmAddConsultaSQL(SqlQueryIts selectedQuery) : this() { this.selectedQuery = selectedQuery; indexarFormulario(selectedQuery); }