Last active
February 16, 2016 17:14
-
-
Save jfbueno/92ceecfc3e71434789a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FormMain : Form | |
{ | |
private void btLupa_Click(object sender, EventArgs e) | |
{ | |
var form = new FormPesquisa(umaListaComOsDados); | |
form.ShowDialog(); | |
if(!string.IsNullOrEmpty(form.Retorno)) | |
textBox.Text = form.Retorno; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class FormPesquisa : Form | |
{ | |
public string Retorno { get; private set; } //Tem que ver qual o melhor tipo pra usar | |
private void CellDoubleClick(object sender, DataGridViewCellEventArgs e) | |
{ | |
Retorno = tblUg.Rows[e.RowIndex].Cells[0].Value.ToString(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment