/// <summary>
 /// If key doesnt exist it will be added and value will be set to default.
 /// If it exist default value will be changed.
 /// </summary>
 /// <param name="key">Key identifier</param>
 /// <param name="obj">object that you want to set as the default value</param>
 public void SetDefault(int key, object obj)
 {
     if (!list.ContainsKey(key))
     {
         SettingItem item = new SettingItem(obj);
         item.Key = key;
         item.UpdatedSetting += new FmdcEventHandler(item_UpdatedSetting);
         list.Add(key, item);
     }
     else
     {
         list[key].DefaultValue = obj;
     }
 }
 /// <summary>
 /// Adds item to key if key doesnt exist.
 /// </summary>
 /// <param name="key">Key identifier.</param>
 /// <param name="item">Setting item that you want to add</param>
 public bool Add(int key, SettingItem item)
 {
     item.Key = key;
     item.UpdatedSetting += new FmdcEventHandler(item_UpdatedSetting);
     if (!list.ContainsKey(key))
     {
         list.Add(key, item);
         return true;
     }
     return false;
 }