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);
        }
示例#3
0
        void IOnOpenListener.OnOpen(IPluginHostServices services)
        {
            hostServices = services;

            hostServices.Show(generalView, DockState.DockRight);
            hostServices.Show((DockContent)incidentEditView, DockState.DockRight);
        }
示例#4
0
        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);
        }
示例#8
0
        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);
        }
示例#10
0
        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();
        }
示例#11
0
        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();
        }
示例#12
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);
        }
示例#13
0
 public void Show(IPluginHostServices hostServices)
 {
     hostServices.Show(contentForm, DockState.Document);
     regionSelectionController.Start();
 }
 void IOnOpenListener.OnOpen(IPluginHostServices services)
 {
     hostServices = services;
     IViewFormMenuItem menuItem = new ViewFormMenuItem("&View|Fire &Bans", hostServices, this);
     menuItem.ToggleViewShown();
 }
示例#15
0
 public void Accept(IPluginHostServices hostServices)
 {
     hostServices.AddService(cfaDataSet);
 }
示例#16
0
 public void Accept(IPluginHostServices hostServices)
 {
     hostServices.AddService(cfaDataSet);
 }
示例#17
0
 void IPlugin.Accept(IPluginHostServices services)
 {
     services.AddOnOpenListener(this);
 }
示例#18
0
 void IOnOpenListener.OnOpen(IPluginHostServices hostServices)
 {
     incidentsRSSReader.Start(options);
 }
示例#19
0
 void IPlugin.Accept(IPluginHostServices services)
 {
     services.AddOnOpenListener(this);
 }
示例#20
0
 public void Accept(IPluginHostServices hostServices)
 {
 }
 public void Accept(IPluginHostServices hostServices)
 {
 }
 public void Show(IPluginHostServices hostServices)
 {
     hostServices.Show(contentForm, DockState.Document);
     regionSelectionController.Start();
 }
示例#23
0
 public IIncidentsViewController Create(IPluginHostServices hostServices, int incidentsViewID)
 {
     ISystemDefinition system =
         parentDefinition.CreateSubsystem(new IncidentsViewBuilder(incidentsViewID));
     return system.Get<IIncidentsViewController>();
 }