/// <summary> /// 新增 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripButton3_Click(object sender, EventArgs e) { refresh r = new refresh(Search); frmGdmlEdit edit = new frmGdmlEdit("", "归档目录-新增", this.cboType.SelectedValue.ToString(), r); edit.ShowDialog(); }
/// <summary> /// 编辑 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void toolStripButton2_Click(object sender, EventArgs e) { string id = getSelectID(); if (string.IsNullOrEmpty(id)) { TXMessageBoxExtensions.Info("没有数据,不能编辑!"); return; } refresh r = new refresh(Search); frmGdmlEdit edit = new frmGdmlEdit(id, "归档目录-编辑", this.cboType.SelectedValue.ToString(), r); edit.ShowDialog(); }