private void Tool_add_Click(object sender, EventArgs e) { AddConnector addConnector = new AddConnector("添加连接器", false, "", "", ""); if (addConnector.ShowDialog() == DialogResult.OK) { QueryConnectorInfo(); UserOperateRecord.UpdateOperateRecord($"添加连接器库"); } }
private void Tool_edit_Click(object sender, EventArgs e) { int rowIndex = this.radGridView1.CurrentRow.Index; if (rowIndex < 0) { return; } var connectorType = this.radGridView1.CurrentRow.Cells[1].Value.ToString(); var switchType = this.radGridView1.CurrentRow.Cells[2].Value.ToString(); var remark = this.radGridView1.CurrentRow.Cells[4].Value.ToString(); AddConnector addConnector = new AddConnector("编辑连接器", true, connectorType, switchType, remark); if (addConnector.ShowDialog() == DialogResult.OK) { QueryConnectorInfo(); } }