private void btnAdd_Click(object sender, EventArgs e) { FormBSInvenTypeInput formInvenTypeInput = new FormBSInvenTypeInput(); formInvenTypeInput.Tag = "Add"; //添加操作 formInvenTypeInput.Owner = this; formInvenTypeInput.ShowDialog(); }
private void btnUpdate_Click(object sender, EventArgs e) { if (tvInvenType.SelectedNode != null) { if (tvInvenType.SelectedNode.Tag != null) { FormBSInvenTypeInput formInvenTypeInput = new FormBSInvenTypeInput(); formInvenTypeInput.Tag = "Edit"; //修改操作 formInvenTypeInput.Owner = this; formInvenTypeInput.ShowDialog(); } } }