コード例 #1
0
 void IIncidentsRSSReader.Start(IIncidentsRSSReaderOptions readerOptions)
 {
     options = readerOptions;
     readerOptions.SetListener(this);
     CreateRssReader();
     rssReader.Start(readerOptions);
 }
コード例 #2
0
 void IIncidentsRSSReader.Start(IIncidentsRSSReaderOptions readerOptions)
 {
     options = readerOptions;
     readerOptions.SetListener(this);
     CreateRssReader();
     rssReader.Start(readerOptions);
 }
コード例 #3
0
        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);
        }
コード例 #4
0
 public IncidentsRSSReaderPlugin(IIncidentsRSSReader incidentsRSSReader, IIncidentsRSSReaderOptions options)
 {
     this.incidentsRSSReader = incidentsRSSReader;
     this.options            = options;
 }