//修改会员按钮 private void tsbtnUpdateCust_Click(object sender, EventArgs e) { //如果没选中,则返回 if (lvAdmin.SelectedItems.Count <= 0) { return; } AddEmployee ae = new AddEmployee(lvAdmin.SelectedItems[0].Text); ae.ShowDialog(); }
//添加会员按钮 private void tsbtnAddCust_Click(object sender, EventArgs e) { AddEmployee ae = new AddEmployee(""); ae.ShowDialog(); }