Example #1
0
        public MieFileList GetUpdate(MieFileList oldFileList)
        {
            MieFileList result = new MieFileList();

            foreach (var currentEntry in this.Items.Values)
            {
                var oldEntry = oldFileList.GetFileEntry(currentEntry.FileCode);
                if (oldEntry != null && oldEntry.LanguageType != currentEntry.LanguageType)
                {
                    //// 更新
                    result.AddEntry(currentEntry);
                }
            }

            return(result);
        }
Example #2
0
        public MieFileList GetAdd(MieFileList oldFileList)
        {
            MieFileList result = new MieFileList();

            foreach (var currentEntry in this.Items.Values)
            {
                var oldEntry = oldFileList.GetFileEntry(currentEntry.FileCode);
                if (oldEntry == null)
                {
                    //// 追加
                    result.AddEntry(currentEntry);
                }
            }

            return(result);
        }