internal bool AddIconset(Iconset iconset) { iconset.CreateTime = DateTime.Now; m_iconSets.Add(iconset); SaveIconset(iconset); return true; }
private void AddIconCore(IconBase icon, Iconset iconSet) { DateTime now = DateTime.Now; icon.CreateTime = now; iconSet.ModifiedTime = now; iconSet.AddIcon(icon); SaveIconset(iconSet); }
private void SaveIconset(Iconset set) { var fileName = Path.Combine(m_appData, set.Name + FILEEXTEND); File.WriteAllText(fileName, JsonConvert.SerializeObject(set)); }