CarotDav_decompile/CarotDAV/ErrorPromptManager.cs

35 lines
786 B
C#

// Decompiled with JetBrains decompiler
// Type: CarotDAV.ErrorPromptManager
// 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
namespace CarotDAV
{
public class ErrorPromptManager
{
private bool pIgnoreAll;
public bool IgnoreAll()
{
return this.pIgnoreAll;
}
public void RegisterAction(ErrorPromptFormResult r)
{
if (!r.ToAll)
return;
if (r.Action == ErrorAction.Ignore)
{
this.pIgnoreAll = true;
}
else
{
if (r.Action != ErrorAction.Retry)
return;
this.pIgnoreAll = false;
}
}
}
}