initial commit
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
// Decompiled with JetBrains decompiler
|
||||
// Type: DarkModeForms.ControlStatusStorage
|
||||
// Assembly: Raton, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null
|
||||
// MVID: 36C4E416-7F8D-4D23-930F-B5CCB0D810E7
|
||||
// Assembly location: C:\Users\user\Desktop\v3.8.0 Deluxe Plugins (v4.0.0) cracked\Raton.exe
|
||||
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Windows.Forms;
|
||||
|
||||
#nullable disable
|
||||
namespace DarkModeForms;
|
||||
|
||||
public class ControlStatusStorage
|
||||
{
|
||||
private readonly ConditionalWeakTable<Control, ControlStatusInfo> _controlsProcessed = new ConditionalWeakTable<Control, ControlStatusInfo>();
|
||||
|
||||
public void ExcludeFromProcessing(Control control)
|
||||
{
|
||||
this._controlsProcessed.Remove(control);
|
||||
this._controlsProcessed.Add(control, new ControlStatusInfo()
|
||||
{
|
||||
IsExcluded = true
|
||||
});
|
||||
}
|
||||
|
||||
public ControlStatusInfo GetControlStatusInfo(Control control)
|
||||
{
|
||||
ControlStatusInfo controlStatusInfo;
|
||||
this._controlsProcessed.TryGetValue(control, out controlStatusInfo);
|
||||
return controlStatusInfo;
|
||||
}
|
||||
|
||||
public void RegisterProcessedControl(Control control, bool isDarkMode)
|
||||
{
|
||||
this._controlsProcessed.Add(control, new ControlStatusInfo()
|
||||
{
|
||||
IsExcluded = false,
|
||||
LastThemeAppliedIsDark = isDarkMode
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user