コード例 #1
0
        public override void SetPlugin(SC.Interfaces.IScPluginClient plugin)
        {
            if (plugin == null)
                throw new ArgumentNullException("plugin");
            else if (!(plugin is SC.Interfaces.DefaultPlugins.IServerCheckPlugin))
                throw new ArgumentException("plugin");

            this.plugin = plugin as SC.Interfaces.DefaultPlugins.IServerCheckPlugin;
            RefreshView();
        }
コード例 #2
0
        public override void SetPlugin(SC.Interfaces.IScPluginClient plugin)
        {
            if (plugin == null)
            {
                throw new ArgumentNullException("plugin");
            }
            else if (!(plugin is SC.Interfaces.DefaultPlugins.IServerCheckPlugin))
            {
                throw new ArgumentException("plugin");
            }

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