//修改房子按钮 private void tsbtnUpdate_Click(object sender, EventArgs e) { if (lvHouse.SelectedItems.Count <= 0) { return; } AddHouseForm ahf = new AddHouseForm(lvHouse.SelectedItems[0].SubItems[0].Text); ahf.ShowDialog(); }
//添加房子按钮 private void tsbtnAddHouse_Click(object sender, EventArgs e) { AddHouseForm ahf = new AddHouseForm(""); ahf.ShowDialog(); }