private void buttonInsertTenant_Click(object sender, EventArgs e) { Form form = new TenantProperties(); form.ShowDialog(); buttonSearch_Click(sender, e); }
private void dataGridViewTenants_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { Form form = new TenantProperties(Convert.ToInt32(dataGridViewTenants.SelectedRows[0].Cells[0].Value)); form.ShowDialog(); buttonSearch_Click(sender, e); }