void IIncidentsRSSReader.Start(IIncidentsRSSReaderOptions readerOptions) { options = readerOptions; readerOptions.SetListener(this); CreateRssReader(); rssReader.Start(readerOptions); }
void IPlugin.Accept(IPluginHostServices hostServices) { ImageResources imageResources = new ImageResources(); hostServices.ToolStrip.AddButton("Refresh RSS", imageResources.GetImage("page_refresh.gif"), onRefreshRSSButtonClicked, "Refresh"); IPersistenceService persistenceService = hostServices.GetService <IPersistenceService>(); options = persistenceService.RegisterScope("IncidentsRSSReader", UpdatePersistence, options); hostServices.OptionsView.AddProperties(options); hostServices.AddService(incidentsRSSReader); hostServices.AddOnOpenListener(this); }
public IncidentsRSSReaderPlugin(IIncidentsRSSReader incidentsRSSReader, IIncidentsRSSReaderOptions options) { this.incidentsRSSReader = incidentsRSSReader; this.options = options; }