Here\'s a very simplified example of what I have now:
public static class Settings
{
public static TH th;
}
public partial class PhrasesFrame
{
priv
How about adding an Action to your static Settings class, and firing that action from the th setter?
I've used an int instead of your TH object, but I'm sure you can adapt the following example.
Test it here: https://dotnetfiddle.net/ItaMhL
using System;
public class Program
{
public static void Main()
{
var id = (int)Settings.th;
Settings.action = () => id = Settings.th;
Settings.th = 123;
Console.WriteLine(id);
Settings.th = 234;
Console.WriteLine(id);
}
public static class Settings
{
private static int _th;
public static int th
{
get{return _th;}
set{
_th = value;
action();}
}
public static Action action;
}
}