コード例 #1
0
        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));
        }
コード例 #2
0
 public ReporterPlugin(NestPlugin parent)
 {
     _nest = parent;
 }