Extensions/ImageGlass.Plugins/PluginManager.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Text;

namespace ImageGlass.Plugins
{
    /// <summary>
    /// Holds A static instance of global program shtuff
    /// </summary>
    public class PluginManager
    {
        public PluginManager() { } //Constructor

        //What have we done here?	
        public static PluginServices Plugins = new PluginServices();

        /*
            instead of on the frmMain.cs having to declare a PluginService object
            what i've done here is created one in the Global Class.. i've also made
            it static, so we don't have to worry about the object.. It's always gonna
            be there for us and the same object will always be accessed by everything
            else in the program...
			
            So now, everywhere else in this project i can type:
			
                PluginManager.Plugins .... > 
				
            and it will bring up the Plugins object created above.. peachy, eh?
		
        */
                
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。