private void FillExplorersMenuItems() { var explorersHelper1 = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService1 , getEntityName: GetEntityName , getGlobalOptionSetName: GetGlobalOptionSetName , getGlobalOptionSetMetadataList: GetGlobalOptionSetMetadataList ); var explorersHelper2 = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService2 , getEntityName: GetEntityName , getGlobalOptionSetName: GetGlobalOptionSetName , getGlobalOptionSetMetadataList: GetGlobalOptionSetMetadataList ); var compareWindowsHelper = new CompareWindowsHelper(_iWriteToOutput, _commonConfig, () => Tuple.Create(GetConnection1(), GetConnection2()) , getEntityName: GetEntityName , getGlobalOptionSetName: GetGlobalOptionSetName ); explorersHelper1.FillExplorers(miExplorers1); explorersHelper2.FillExplorers(miExplorers2); compareWindowsHelper.FillCompareWindows(miCompareOrganizations); if (this.Resources.Contains("listContextMenu") && this.Resources["listContextMenu"] is ContextMenu listContextMenu ) { explorersHelper1.FillExplorers(listContextMenu, "miExplorers1"); explorersHelper1.FillExplorers(listContextMenu, "miExplorers2"); compareWindowsHelper.FillCompareWindows(listContextMenu, "miCompareOrganizations"); } }
private void FillExplorersMenuItems() { var explorersHelper = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService , getEntityName: GetEntityName , getMessageName: GetMessageName ); var compareWindowsHelper = new CompareWindowsHelper(_iWriteToOutput, _commonConfig, () => Tuple.Create(GetSelectedConnection(), GetSelectedConnection()) ); explorersHelper.FillExplorers(miExplorers); compareWindowsHelper.FillCompareWindows(miCompareOrganizations); if (this.Resources.Contains("listContextMenu") && this.Resources["listContextMenu"] is ContextMenu listContextMenu ) { explorersHelper.FillExplorers(listContextMenu, nameof(miExplorers)); compareWindowsHelper.FillCompareWindows(listContextMenu, nameof(miCompareOrganizations)); AddMenuItemClickHandler(listContextMenu, explorersHelper.miEntityMetadataExplorer_Click, "mIOpenEntityExplorer"); AddMenuItemClickHandler(listContextMenu, explorersHelper.miMessageProcessingStepExplorer_Click, "miMessageProcessingStepExplorer"); AddMenuItemClickHandler(listContextMenu, explorersHelper.miMessageExplorer_Click, "mIOpenMessageExplorer"); AddMenuItemClickHandler(listContextMenu, explorersHelper.miMessageFilterExplorer_Click, "mIOpenMessageFilterExplorer"); AddMenuItemClickHandler(listContextMenu, explorersHelper.miPluginTree_Click, "mIOpenPluginTree"); AddMenuItemClickHandler(listContextMenu, explorersHelper.miMessageRequestTree_Click, "mIOpenMessageRequestTree"); } }
private void FillExplorersMenuItems() { var explorersHelper = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService , getPluginAssemblyName: GetPluginAssemblyName , getPluginTypeName: GetPluginAssemblyName ); var compareWindowsHelper = new CompareWindowsHelper(_iWriteToOutput, _commonConfig, () => Tuple.Create(GetSelectedConnection(), GetSelectedConnection()) , getPluginAssemblyName: GetPluginAssemblyName ); explorersHelper.FillExplorers(miExplorers); compareWindowsHelper.FillCompareWindows(miCompareOrganizations); miMessageProcessingStepExplorer.Click += explorersHelper.miMessageProcessingStepExplorer_Click; mIOpenPluginTree.Click += explorersHelper.miPluginTree_Click; mIOpenPluginTypeExplorer.Click += explorersHelper.miPluginTypes_Click; if (this.Resources.Contains("listContextMenu") && this.Resources["listContextMenu"] is ContextMenu listContextMenu ) { explorersHelper.FillExplorers(listContextMenu, nameof(miExplorers)); compareWindowsHelper.FillCompareWindows(listContextMenu, nameof(miCompareOrganizations)); AddMenuItemClickHandler(listContextMenu, explorersHelper.miMessageProcessingStepExplorer_Click, nameof(miMessageProcessingStepExplorer)); AddMenuItemClickHandler(listContextMenu, explorersHelper.miPluginTree_Click, nameof(mIOpenPluginTree)); AddMenuItemClickHandler(listContextMenu, explorersHelper.miPluginTypes_Click, nameof(mIOpenPluginTypeExplorer)); } }
private void FillExplorersMenuItems() { var explorersHelper = new ExplorersHelper(_iWriteToOutput, _commonConfig, () => Task.FromResult(_service) , getEntityName: () => _entityName ); explorersHelper.FillExplorers(miExplorers); }
private void FillExplorersMenuItems() { var explorersHelper = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService); explorersHelper.FillExplorers(miExplorers); var compareWindowsHelper = new CompareWindowsHelper(_iWriteToOutput, _commonConfig, () => Tuple.Create(GetSelectedConnection(), GetSelectedConnection())); compareWindowsHelper.FillCompareWindows(miCompareOrganizations); }
private void FillExplorersMenuItems() { var explorersHelper1 = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService1 , getEntityName: GetEntityName , getSavedQueryVisualizationName: GetChartName1 ); var explorersHelper2 = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService2 , getEntityName: GetEntityName , getSavedQueryVisualizationName: GetChartName2 ); var compareWindowsHelper = new CompareWindowsHelper(_iWriteToOutput, _commonConfig, () => Tuple.Create(GetConnection1(), GetConnection2()) , getEntityName: GetEntityName , getSavedQueryVisualizationName: GetChartName1 ); explorersHelper1.FillExplorers(miExplorers1); explorersHelper2.FillExplorers(miExplorers2); compareWindowsHelper.FillCompareWindows(miCompareOrganizations); if (this.Resources.Contains("listContextMenu") && this.Resources["listContextMenu"] is ContextMenu contextMenu ) { var items = contextMenu.Items.OfType <MenuItem>(); foreach (var item in items) { if (string.Equals(item.Uid, "miExplorers1", StringComparison.InvariantCultureIgnoreCase)) { explorersHelper1.FillExplorers(item); } else if (string.Equals(item.Uid, "miExplorers2", StringComparison.InvariantCultureIgnoreCase)) { explorersHelper2.FillExplorers(item); } else if (string.Equals(item.Uid, "miCompareOrganizations", StringComparison.InvariantCultureIgnoreCase)) { compareWindowsHelper.FillCompareWindows(item); } } } }
private void FillExplorersMenuItems() { var explorersHelper = new ExplorersHelper(_iWriteToOutput, _commonConfig, GetService ); var compareWindowsHelper = new CompareWindowsHelper(_iWriteToOutput, _commonConfig, () => Tuple.Create(GetSelectedConnection(), GetSelectedConnection())); explorersHelper.FillExplorers(miExplorers); compareWindowsHelper.FillCompareWindows(miCompareOrganizations); if (this.Resources.Contains("listContextMenu") && this.Resources["listContextMenu"] is ContextMenu listContextMenu ) { explorersHelper.FillExplorers(listContextMenu, nameof(miExplorers)); compareWindowsHelper.FillCompareWindows(listContextMenu, nameof(miCompareOrganizations)); } }