Пример #1
0
 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);
     }
 }
Пример #2
0
 public News(Plugin.INews plug)
 {
     _plug  = plug;
     isLoad = true;
 }