public void RemoveItem(string sitename) { bool issuccess = UserDataHelper.RemoveItem(sitename); if (issuccess) { MessageBox.Show("删除成功"); treeWebsite.Nodes[0].Nodes[sitename].Remove(); } else { MessageBox.Show("删除失败"); } }