Example #1
0
        private static void CreateAndAddNewTitle(string title)
        {
            LogTitleRecord record = LogTitleRecord.CreateRecord();

            record.Value = title;
            TitleIds.Add(title, record.Id);
            record.Save();
        }
Example #2
0
        private static void CreateAndAddNewTitle(string title)
        {
            var newTitle = LogTitleRecord.CreateRecord();

            newTitle.Value = title;
            TitleIds.Add(title, newTitle.Id);
            newTitle.Save();
        }
Example #3
0
        private static void LoadTitles()
        {
            var attrs = LogTitleRecord.FindAll();

            foreach (var title in attrs)
            {
                if (TitleIds.ContainsKey(title.Value))
                {
                    title.DeleteLater();
                    continue;
                }
                TitleIds.Add(title.Value, title.Id);
            }
        }