void OnEntryItemInserted(object sender, ItemInsertedEventArgs args) { InfoLogEntry newEntry = InfoLogEntry.Create(); AddSubAsset(newEntry, infoGroupCache); infoGroupCache.entries[args.ItemIndex] = newEntry; DrawSideBar_Entry = DrawSideBar_Entries_Normal; DrawEditor = DrawEditor_Normal; SaveDatabase(); }
void OnAddNewEntryButtonClicked() { InfoLogEntry newEntry = InfoLogEntry.Create(); AddSubAsset(newEntry, infoGroupCache); infoGroupCache.entries.Add(newEntry); CacheEntryTags(); DrawSideBar_Entry = DrawSideBar_Entries_Normal; DrawEditor = DrawEditor_Normal; SaveDatabase(); }