Ejemplo n.º 1
0
        internal void AddEntry(MixEntryTable mixEntry)
        {
            MixEntryModel newEntry = new MixEntryModel(mixEntry);

            indexLookupMap.Add(newEntry.EntryId, newEntry);

            if (newEntry.IsRoot)
            {
                DebugHelper.Assert(new CallerInfo(), RootMixEntry == null, "Ran into two root mix entries for the same mix id");
                RootMixEntry = newEntry;
            }
        }
Ejemplo n.º 2
0
        public void AddMix(string name)
        {
            MixTable table = new MixTable(name, false, 0, MixSortOrder.None, false);

            DatabaseManager.Current.AddMix(table);

            MixModel mixModel = new MixModel(table);

            Mixes.Add(mixModel);
            mixLookupDictionary.Add(mixModel.MixId, mixModel);

            MixEntryTable entryTable = new MixEntryTable(mixModel.MixId, string.Empty, true, MixType.None);

            DatabaseManager.Current.AddMixEntry(entryTable);

            mixModel.AddEntry(entryTable);
        }