예제 #1
0
 private void AddPluginMeasure(IntPtr ptr, PluginSkin skin, PluginMeasure pluginMeasure)
 {
     PluginSkinByMeasurePtr.Add(ptr, skin);
     PluginSkinByMeasurePtr[ptr].AddPluginMeasure(ptr, pluginMeasure);
 }
예제 #2
0
 // -- 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 });