예제 #1
0
 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);
     }
 }
예제 #2
0
        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();
        }