日期:2014-05-17 浏览次数:20778 次
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
bh = e.Node.Tag.ToString();
try
{
myDataSet.Dispose();
myDataAdapter.Dispose();
string sql_cmd = "SELECT * FROM 分类 WHERE 父级=" + e.Node.Tag.ToString();
GetDataSet(sql_cmd);
bing_grid();
}
catch (Exception)
{
MessageBox.Show("系统出现不可预料的错误,错误代码:SFL001");
}
}
private void 添加子分类ToolStripMenuItem_Click(object sender, EventArgs e)
{
//treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e);
// treeView1_NodeMouseDoubleClick(sen, c);
}
private void treeView1_NodeMouseDoubleClick(object sender, TreeNodeMouseClickEventArgs e)
{
SelectNode(e.Node);
}
private void 添加子分类ToolStripMenuItem_Click(object sender, EventArgs e)
{
SelectNode(treeView1.SelectedNode)
}
private void SelectNode(TreeNode node)
{
b