private void 添加检材AToolStripMenuItem_Click(object sender, EventArgs e) { if (this.code.Length < 1) { return; } AppendForm appendForm = new AppendForm(this); appendForm.Show(); }
/// <summary> /// 菜单栏新建 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void 新建案件NToolStripMenuItem_Click(object sender, EventArgs e) { this.code = ""; this.info = ""; this.sampleList.RemoveRange(0, this.sampleList.Count); this.listView_Main.Items.Clear(); NewForm from = new NewForm(); DialogResult r = from.ShowDialog(); if (r == DialogResult.OK) { this.code = from.Code; this.info = from.Name; this.Text += " - " + this.code; this.Text += " *"; AppendForm appendForm = new AppendForm(this); appendForm.Show(); } }