public static void Initialize(ref IntPtr handle, IntPtr rainmeter) { var api = new API(rainmeter); IntPtr skin = api.GetSkin(); string parentName = api.ReadString("Parent", null); IPlugin plugin; if (string.IsNullOrEmpty(parentName)) { plugin = new NestPlugin(); } else { plugin = new ReporterPlugin(NestPlugin.GetParent(skin, parentName)); } handle = GCHandle.ToIntPtr(GCHandle.Alloc(plugin)); }
public ReporterPlugin(NestPlugin parent) { _nest = parent; }