public override void SetPlugin(SC.Interfaces.IScPluginClient plugin) { if (plugin == null) throw new ArgumentNullException("plugin"); else if (!(plugin is SC.Interfaces.DefaultPlugins.IManualControl)) throw new ArgumentException("plugin"); this.plugin = plugin as SC.Interfaces.DefaultPlugins.IManualControl; RefreshView(); }
public override void SetPlugin(SC.Interfaces.IScPluginClient plugin) { if (plugin == null) { throw new ArgumentNullException("plugin"); } else if (!(plugin is SC.Interfaces.DefaultPlugins.IManualControl)) { throw new ArgumentException("plugin"); } this.plugin = plugin as SC.Interfaces.DefaultPlugins.IManualControl; RefreshView(); }