private void AddPluginMeasure(IntPtr ptr, PluginSkin skin, PluginMeasure pluginMeasure) { PluginSkinByMeasurePtr.Add(ptr, skin); PluginSkinByMeasurePtr[ptr].AddPluginMeasure(ptr, pluginMeasure); }
// -- Add Base-Derived class support. private static PluginMeasure CreatePluginMeasure(Assembly assembly, string measureType, string pluginType, PluginSkin skin, RainmeterAPI api) => (PluginMeasure)Activator.CreateInstance(GetPluginMeasureType(assembly, measureType), new object[] { pluginType, skin, api });