//应用模板 private void btUseMould_Click(object sender, EventArgs e) { FrmWholeMould form = new FrmWholeMould(this._recordInfo.RecordType); form.ShowDialog(); if (form.SelectedValue != null) { this._control.SetValue(form.SelectedValue); } }
private void ToolStripMenuItemLevel_Click(object sender, EventArgs e) { FrmWholeMould form = new FrmWholeMould(this._recordInfo.RecordType, this._control.GetValue(), Convert.ToInt32(((ToolStripMenuItem)sender).Tag)); form.ShowDialog(); }