private void tspDeleteProNameList_Click(object sender, EventArgs e) { if (this.lvProNameList.SelectedItems.Count > 0) { string ProName = this.lvProNameList.SelectedItems[0].Text; ProjectBLL bll = new ProjectBLL(); bll.Delete_ProNameList(ProName); AnalyResultBLL analyResultBLL = new AnalyResultBLL(); analyResultBLL.Delete_Result(ProName); NodeBLL nodeBLL = new NodeBLL(); nodeBLL.Delete_ProName(ProName); ParticipantBLL participantBLL = new ParticipantBLL(); participantBLL.Delete_ProName(ProName); SelectedPramasBLL selectedPramasBLL = new SelectedPramasBLL(); selectedPramasBLL.Delete_ProName(ProName); ProNameDataBind(); } else { this.Close(); } }