private void toolAdd_Click(object sender, EventArgs e) { if (tvInven.SelectedNode != null) { FormBSBomInput formBomInput = new FormBSBomInput(); formBomInput.Tag = "Add"; //添加状态 formBomInput.Owner = this; formBomInput.ShowDialog(); } }