Beispiel #1
0
 /// <summary>
 /// Initialize Macros ListView
 /// </summary>
 /// <param name="macroManagementService">Injected MacroManagement Service</param>
 public MacrosListView(IMacroManagementService macroManagementService)
 {
     try
     {
         InitializeComponent();
         _macroManagementService = macroManagementService;
     }
     catch (Exception caught)
     {
         logger.Error("Unexpected Error Initializing Macros ListView", caught);
         throw;
     }
 }
Beispiel #2
0
 /// <summary>
 /// Initialize Navigation TreeView
 /// </summary>
 /// <param name="labelManagementService">Injected Label Management Service</param>
 /// <param name="macroManagementService">Injected Macro Management Service</param>
 /// <param name="externalIntegrationService">Injected External Integration Service</param>
 public NavigationTreeView(ILabelManagementService labelManagementService, IMacroManagementService macroManagementService,
                           IExternalIntegrationService externalIntegrationService)
 {
     try
     {
         InitializeComponent();
         _labelManagementService     = labelManagementService;
         _macroManagementService     = macroManagementService;
         _externalIntegrationService = externalIntegrationService;
     }
     catch (Exception caught)
     {
         logger.Error("Unexpected Error Initializing Navigation TreeView", caught);
         throw;
     }
 }
Beispiel #3
0
 /// <summary>
 /// Initialize Standard External Integration Service Implementation
 /// </summary>
 /// <param name="dataRepository">The Data Repository</param>
 /// <param name="installedProviders">The Installed Providers</param>
 /// <param name="labelManagementService">The Label Management Service</param>
 /// <param name="macroManagementService">The Macro Management Service</param>
 public StdExternalIntegrationServiceImpl(
     IDataRepository dataRepository,
     IProvider[] installedProviders,
     ILabelManagementService labelManagementService,
     IMacroManagementService macroManagementService)
 {
     try
     {
         _dataRepository         = dataRepository;
         _labelManagementService = labelManagementService;
         _macroManagementService = macroManagementService;
         installedProviders.ToList().ForEach(p => _installedProviders.Add(p.ProviderCode, p));
     }
     catch (Exception caught)
     {
         logger.Error("Unexpected Error Initializing Standard External Integration Service Implementation", caught);
         throw;
     }
 }