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(); }
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(); }