private void SaveDictToKVP() { NoICKVP.Clear(); foreach (KeyValuePair <string, string> k in NoICPrices) { var kvp = new SerializableKVP(); kvp.Set(k.Key, k.Value); NoICKVP.Add(kvp); } }
private void bminAdd_Click(object sender, EventArgs e) { var af = new AddSettingForm(true); af.ShowDialog(); if (!af.Valid) { return; } var k = new SerializableKVP(); k.Set(af.Prop1, af.Prop2); EditedSettings.NoICKVP.Add(k); UpdateFields(); }