public void Load(string name) { try { if (isLoad) { throw new NewsLoadedException(); } _plug = PluginManager.CreateObject <Plugin.INews>(name, "News"); isLoad = true; }catch (Exception ex) { Environment.ReportError(ex, AccessManager.AccessKey); } }
public News(Plugin.INews plug) { _plug = plug; isLoad = true; }