Ejemplo n.º 1
0
        public override void SetPlugin(SC.Interfaces.IScPluginClient plugin)
        {
            if (plugin == null)
                throw new ArgumentException("plugin");
            else if (!(plugin is SC.Interfaces.DefaultPlugins.IServerBoosterPlugin))
                throw new ArgumentException("plugin");

            this.plugin = plugin as SC.Interfaces.DefaultPlugins.IServerBoosterPlugin;
            RefreshView();
        }
Ejemplo n.º 2
0
        public override void SetPlugin(SC.Interfaces.IScPluginClient plugin)
        {
            if (plugin == null)
            {
                throw new ArgumentException("plugin");
            }
            else if (!(plugin is SC.Interfaces.DefaultPlugins.IServerBoosterPlugin))
            {
                throw new ArgumentException("plugin");
            }

            this.plugin = plugin as SC.Interfaces.DefaultPlugins.IServerBoosterPlugin;
            RefreshView();
        }