public IIncidentsViewController Create(IPluginHostServices hostServices, int incidentsViewID) { ISystemDefinition system = parentDefinition.CreateSubsystem(new IncidentsViewBuilder(incidentsViewID)); return(system.Get <IIncidentsViewController>()); }
protected override void SetUp() { hostServices = NewMock<IPluginHostServices>(); factory = NewMock<IIncidentsViewFactory>(); plugIn = new IncidentsViewPlugIn(factory); }
void IOnOpenListener.OnOpen(IPluginHostServices services) { hostServices = services; hostServices.Show(generalView, DockState.DockRight); hostServices.Show((DockContent)incidentEditView, DockState.DockRight); }
void IOnOpenListener.OnOpen(IPluginHostServices services) { hostServices = services; hostServices.Show(generalView, DockState.DockRight); hostServices.Show((DockContent) incidentEditView, DockState.DockRight); }
void IOnOpenListener.OnOpen(IPluginHostServices services) { hostServices = services; IViewFormMenuItem menuItem = new ViewFormMenuItem("&View|Fire &Bans", hostServices, this); menuItem.ToggleViewShown(); }
protected override void SetUp() { hostServices = NewMock <IPluginHostServices>(); factory = NewMock <IIncidentsViewFactory>(); plugIn = new IncidentsViewPlugIn(factory); }
void IPlugin.Accept(IPluginHostServices services) { hostServices = services; IPersistenceService persistenceService = hostServices.GetService<IPersistenceService>(); options.RssOptions = persistenceService.RegisterScope("TotalFireBanRSSReader", UpdatePersistence, options.RssOptions); hostServices.OptionsView.AddProperties(options.RssOptions); hostServices.AddOnOpenListener(this); }
void IPlugin.Accept(IPluginHostServices services) { hostServices = services; menuItem = hostServices.MenuBar.AddMenuItem("&Tools|&Options"); menuItem.Click += menuItem_Click; ImageResources imageResources = new ImageResources(); hostServices.ToolStrip.AddButton("Options", imageResources.GetImage("PropertiesHS.png"), onOptionsButtonClick, "Options"); }
void IPlugin.Accept(IPluginHostServices services) { hostServices = services; IPersistenceService persistenceService = hostServices.GetService <IPersistenceService>(); options.RssOptions = persistenceService.RegisterScope("TotalFireBanRSSReader", UpdatePersistence, options.RssOptions); hostServices.OptionsView.AddProperties(options.RssOptions); hostServices.AddOnOpenListener(this); }
void IOnOpenListener.OnOpen(IPluginHostServices services) { hostServices = services; IPersistenceService persistenceService = hostServices.GetService<IPersistenceService>(); config = persistenceService.RegisterScope("IncidentsViewPlugIn", UpdateConfig, new IncidentsViewPlugInConfig()); IToolStripMenuItem menuItem = hostServices.MenuBar.AddMenuItem("&Incidents|Add &View"); menuItem.Click += addIncidentsViewMenuItem_Click; NewIncidentsView(); }
void IOnOpenListener.OnOpen(IPluginHostServices services) { hostServices = services; IPersistenceService persistenceService = hostServices.GetService <IPersistenceService>(); config = persistenceService.RegisterScope("IncidentsViewPlugIn", UpdateConfig, new IncidentsViewPlugInConfig()); IToolStripMenuItem menuItem = hostServices.MenuBar.AddMenuItem("&Incidents|Add &View"); menuItem.Click += addIncidentsViewMenuItem_Click; NewIncidentsView(); }
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 void Show(IPluginHostServices hostServices) { hostServices.Show(contentForm, DockState.Document); regionSelectionController.Start(); }
public void Accept(IPluginHostServices hostServices) { hostServices.AddService(cfaDataSet); }
void IPlugin.Accept(IPluginHostServices services) { services.AddOnOpenListener(this); }
void IOnOpenListener.OnOpen(IPluginHostServices hostServices) { incidentsRSSReader.Start(options); }
public void Accept(IPluginHostServices hostServices) { }
public IIncidentsViewController Create(IPluginHostServices hostServices, int incidentsViewID) { ISystemDefinition system = parentDefinition.CreateSubsystem(new IncidentsViewBuilder(incidentsViewID)); return system.Get<IIncidentsViewController>(); }