/// <summary> /// 添加零件 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnPartsAdd_Click(object sender, EventArgs e) { // 添加零件 AssociatedParts parts = new AssociatedParts(); if (DialogResult.OK == parts.ShowDialog()) { // 添加零部件成功! } }