// Decompiled with JetBrains decompiler // Type: CarotDAV.ConflictPromptManager // Assembly: CarotDAV, Version=1.13.2.18337, Culture=neutral, PublicKeyToken=null // MVID: C31F2651-A4A8-4D09-916A-8C6106F5E7C8 // Assembly location: F:\Eigene Dateien\Dropbox\portable Collection\Progs\CarotDAV\CarotDAV.exe using System.Collections.Generic; namespace CarotDAV { public class ConflictPromptManager { private Dictionary pActionDic; public ConflictPromptManager() { this.pActionDic = new Dictionary(); } public bool IsRegistered(ConflictType type) { if (type == ConflictType.NoConfliction) return true; if (this.pActionDic.ContainsKey(type)) return this.pActionDic[type] != ConflictAction.NoConfliction; return false; } public ConflictAction GetAction(ConflictType type) { if (type == ConflictType.NoConfliction) return ConflictAction.NoConfliction; return this.pActionDic[type]; } public void RegisterAction(ConflictPromptFormResult r) { if (!r.ToAll) return; if (r.Action == ConflictAction.Retry || r.Action == ConflictAction.AutoRetry) this.pActionDic.Remove(r.Type); else if (this.pActionDic.ContainsKey(r.Type)) this.pActionDic[r.Type] = r.Action; else this.pActionDic.Add(r.Type, r.Action); } } }