private void btInsereAluguel_Click(object sender, EventArgs e) { InsereValores dlgInsereValores = new InsereValores(); if (dlgInsereValores.ShowDialog() == DialogResult.OK) txtAluguel.Text = dlgInsereValores.getValorInserido; }
private void ModalInsereValores(TextBox txtParaInsercao) { InsereValores dlgInsereValores = new InsereValores(); if (dlgInsereValores.ShowDialog() == DialogResult.OK) txtParaInsercao.Text = dlgInsereValores.getValorInserido; }