//删除项目-Project private void menuRemoveProject_Click(object sender, EventArgs e) { if (MsgBox.Confirm("确定要删除该项目吗?")) { if (service.DeleteProject(Global.GetCurrentProjectID())) { this.BindProjectList(); if (this.cboProject.Items.Count <= 0) { ClearProject(); } } else { MsgBox.Alert("删除项目失败"); } } }