private void addKeyToolStripMenuItem_Click(object sender, EventArgs e) { AddConfigValue input = new AddConfigValue(); input.ShowDialog(); string pKey = input.getPKey(); string pValue = input.getPValue(); PKeyValuePair newKeyValuePair = new PKeyValuePair { PKey = pKey, PValue = pValue }; upsertPKeyValuePair(newKeyValuePair, true); }
private void insertNewToolStripMenuItem_Click(object sender, EventArgs e) { AddConfigValue input = new AddConfigValue(); input.ShowDialog(); string pKey = input.getPKey(); string pValue = input.getPValue(); // Next we create our pair object and insert it before the current index.*/ PKeyValuePair newKeyValuePair = new PKeyValuePair { PKey = pKey, PValue = pValue }; upsertPKeyValuePair(newKeyValuePair, false); }