private void buttonVerECriarArrendamento_Click(object sender, EventArgs e) { FormArrendamentos FormArrendamentos = new FormArrendamentos(context, (CasaArrendavel)DataGridViewCasa.CurrentRow.DataBoundItem); FormArrendamentos.ShowDialog(); }
private void listBoxListaArrendamentos_MouseDoubleClick(object sender, MouseEventArgs e) { FormArrendamentos FormArrendamentos = new FormArrendamentos(context, (CasaArrendavel)listBoxListaArrendamentos.SelectedItem); FormArrendamentos.ShowDialog(); }