public static FileDetailsHolderService Load(string path)
        {
            PersistenceHelper <FileDetailsHolderService> ph = new PersistenceHelper <FileDetailsHolderService>(path);
            FileDetailsHolderService tf = ph.LoadDataSingle(path + @"\eWolfFileDuplicates.dat");

            return(tf);
        }
        public void Load()
        {
            PersistenceHelper <SoundHolder> ph = new PersistenceHelper <SoundHolder>(_outputFolder);

            string      outputFileName  = Path.Combine(_outputFolder, GetFileName);
            SoundHolder tempSoundHolder = ph.LoadDataSingle(outputFileName);

            SoundItems.Clear();
            if (tempSoundHolder != null)
            {
                SoundItems.AddRange(tempSoundHolder.SoundItems);
            }
        }
Beispiel #3
0
        public void Load()
        {
            PersistenceHelper <GlobalTagStore> ph = new PersistenceHelper <GlobalTagStore>(GetOutputFolder());

            string         outputFileName  = Path.Combine(GetOutputFolder(), GetFileName);
            GlobalTagStore tempSoundHolder = ph.LoadDataSingle(outputFileName);

            lock (Tags)
            {
                Tags.Clear();
                if (tempSoundHolder != null)
                {
                    Tags.AddRange(tempSoundHolder.Tags);
                }
            }
        }