private void EditInterfaceLibrary() { if (!RadGridViewProperties.IsSelectRow(this.radGridView1)) { return; } var plugNo = this.radGridView1.CurrentRow.Cells[1].Value; if (plugNo != null) { plugNo = plugNo.ToString(); } else { MessageBox.Show("请选择要编辑的行!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning); return; } RadUpdateInterface radUpdateInterface = new RadUpdateInterface("编辑接口库", plugNo.ToString(), true); if (radUpdateInterface.ShowDialog() == DialogResult.OK) { QueryInterfaceInfo(); UserOperateRecord.UpdateOperateRecord($"编辑接口"); } }
private void Tool_add_Click(object sender, EventArgs e) { RadUpdateInterface radUpdateInterface = new RadUpdateInterface("添加接口库", "", false); if (radUpdateInterface.ShowDialog() == DialogResult.OK) { QueryInterfaceInfo(); UserOperateRecord.UpdateOperateRecord($"添加接口"); } }