public ComplexityAnalysisOptionPage(Lifetime lifetime, OptionsSettingsSmartContext optionsSettingsSmartContext, ILanguages languages, ILanguageManager languageManager) : base(lifetime, optionsSettingsSmartContext) { AddText("Specify cyclomatic complexity thresholds:"); var thresholds = OptionsSettingsSmartContext.Schema.GetIndexedEntry((CyclomaticComplexityAnalysisSettings s) => s.Thresholds); var list = new List<LanguageSpecificComplexityProperties>(); foreach (var languageType in languages.All.Where(languageManager.HasService<IControlFlowBuilder>).OrderBy(GetPresentableName)) { var presentableName = GetPresentableName(languageType); var thing = new LanguageSpecificComplexityProperties(lifetime, optionsSettingsSmartContext, thresholds, languageType.Name, presentableName, CyclomaticComplexityAnalysisSettings.DefaultThreshold); list.Add(thing); } // TODO: Do we want to add any keywords for the list view? // We would use OptionEntities.Add if the view model also implements IOptionEntity, // or use RegisterWord if we just want to add keyword(s) // (But the list view is just language name + threshold, so not very interesting) AddCustomOption(new ComplexityAnalysisOptionsViewModel(list)); OptionEntities.Add(new HyperlinkOptionViewModel(lifetime, "What is a good threshold value?", new DelegateCommand(() => Process.Start("https://github.com/JetBrains/resharper-cyclomatic-complexity/blob/master/docs/ThresholdGuidance.md#readme")))); FinishPage(); }
FileSearcherCreator(IFileTreeView fileTreeView, IImageManager imageManager, DotNetImageManager dotNetImageManager, ILanguageManager languageManager) { this.fileTreeView = fileTreeView; this.imageManager = imageManager; this.dotNetImageManager = dotNetImageManager; this.languageManager = languageManager; }
public IntegrityManager(IContentTypeManager contentTypeManager, IUrlParser urlParser, ILanguageManager languageManager, AdminSection adminSection) { _contentTypeManager = contentTypeManager; _urlParser = urlParser; _languageManager = languageManager; _adminConfig = adminSection; }
DecompileFileTabContentFactory(IFileManager fileManager, IFileTreeNodeDecompiler fileTreeNodeDecompiler, ILanguageManager languageManager, IDecompilationCache decompilationCache, IMethodAnnotations methodAnnotations) { this.fileManager = fileManager; this.fileTreeNodeDecompiler = fileTreeNodeDecompiler; this.languageManager = languageManager; this.decompilationCache = decompilationCache; this.methodAnnotations = methodAnnotations; }
BreakpointsVM(ILanguageManager languageManager, IImageManager imageManager, IThemeManager themeManager, IDebuggerSettings debuggerSettings, ITheDebugger theDebugger, IBreakpointManager breakpointManager, IBreakpointSettings breakpointSettings, Lazy<IModuleLoader> moduleLoader, IInMemoryModuleManager inMemoryModuleManager) { this.breakpointContext = new BreakpointContext(imageManager, moduleLoader) { Language = languageManager.Language, SyntaxHighlight = debuggerSettings.SyntaxHighlightBreakpoints, UseHexadecimal = debuggerSettings.UseHexadecimal, ShowTokens = breakpointSettings.ShowTokens, ShowModuleNames = breakpointSettings.ShowModuleNames, ShowParameterTypes = breakpointSettings.ShowParameterTypes, ShowParameterNames = breakpointSettings.ShowParameterNames, ShowOwnerTypes = breakpointSettings.ShowOwnerTypes, ShowReturnTypes = breakpointSettings.ShowReturnTypes, ShowNamespaces = breakpointSettings.ShowNamespaces, ShowTypeKeywords = breakpointSettings.ShowTypeKeywords, }; this.breakpointManager = breakpointManager; this.theDebugger = theDebugger; this.breakpointList = new ObservableCollection<BreakpointVM>(); breakpointSettings.PropertyChanged += BreakpointSettings_PropertyChanged; breakpointManager.OnListModified += BreakpointManager_OnListModified; debuggerSettings.PropertyChanged += DebuggerSettings_PropertyChanged; theDebugger.OnProcessStateChanged += TheDebugger_OnProcessStateChanged; themeManager.ThemeChanged += ThemeManager_ThemeChanged; languageManager.LanguageChanged += LanguageManager_LanguageChanged; inMemoryModuleManager.DynamicModulesLoaded += InMemoryModuleManager_DynamicModulesLoaded; foreach (var bp in breakpointManager.Breakpoints) AddBreakpoint(bp); }
public AbpUserConfigurationBuilder( IMultiTenancyConfig multiTenancyConfig, ILanguageManager languageManager, ILocalizationManager localizationManager, IFeatureManager featureManager, IFeatureChecker featureChecker, IPermissionManager permissionManager, IUserNavigationManager userNavigationManager, ISettingDefinitionManager settingDefinitionManager, ISettingManager settingManager, IAbpAntiForgeryConfiguration abpAntiForgeryConfiguration, IAbpSession abpSession, IPermissionChecker permissionChecker) { _multiTenancyConfig = multiTenancyConfig; _languageManager = languageManager; _localizationManager = localizationManager; _featureManager = featureManager; _featureChecker = featureChecker; _permissionManager = permissionManager; _userNavigationManager = userNavigationManager; _settingDefinitionManager = settingDefinitionManager; _settingManager = settingManager; _abpAntiForgeryConfiguration = abpAntiForgeryConfiguration; _abpSession = abpSession; _permissionChecker = permissionChecker; }
ExportProjectCommand(IAppWindow appWindow, IFileTreeView fileTreeView, ILanguageManager languageManager, IFileTreeViewSettings fileTreeViewSettings, IExportToProjectSettings exportToProjectSettings, [ImportMany] IEnumerable<Lazy<IBamlDecompiler>> bamlDecompilers) { this.appWindow = appWindow; this.fileTreeView = fileTreeView; this.languageManager = languageManager; this.fileTreeViewSettings = fileTreeViewSettings; this.exportToProjectSettings = exportToProjectSettings; this.bamlDecompiler = bamlDecompilers.FirstOrDefault(); }
public TranslateDirection(ISQLiteTesting dbHelper, IDirectionManager directionManager, ILanguageManager languageManager) { this.db = dbHelper; this.directionManager = directionManager; this.languageManager = languageManager; this.LanguageFrom = languageManager.GetItemForNameEng("English"); this.LanguageTo = languageManager.GetItemForNameEng("Russian"); }
public LayoutController( IUserNavigationManager userNavigationManager, ILocalizationManager localizationManager, ILanguageManager languageManager) { _userNavigationManager = userNavigationManager; _languageManager = languageManager; }
/// <summary> /// Initializes a new instance of <see cref="AbstractPageControl"/> for specified <see cref="ILanguageManager"/>, /// <see cref="IWindowManager"/> and <see cref="IProfileManager"/>. /// </summary> /// <param name="LanguageManager">LanguageManager API</param> /// <param name="WindowManager">WindowManager API</param> /// <param name="ProfileManager">ProfileManager API</param> public AbstractPageControl(ILanguageManager LanguageManager, IWindowManager WindowManager, IProfileManager ProfileManager) : base(LanguageManager, WindowManager) { this.Container = new PageContainer(this); if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(new DependencyObject())) { this.ProfileManager = ProfileManager; ProfileManager.ProfileChanged += OnProfileChangedInternal; } }
/// <summary> /// Отдельный конструктор для тестирования /// </summary> /// <param name="view"></param> /// <param name="db"></param> /// <param name="selectedChatID"></param> /// <param name="chatManager"></param> public DictionaryChatPresenter(IDictionaryChatView view, ISQLiteTesting db, int selectedChatID, IChatManager chatManager, ILanguageManager languageManager, IChatHistoryManager chatHistoryManager) { this.view = view; this.db = db; this.selectedChatID = selectedChatID; this.chatManager = chatManager; this.languageManager = languageManager; this.chatHistoryManager = chatHistoryManager; }
public LocalizationScriptManager( ILocalizationManager localizationManager, ICacheManager cacheManager, ILanguageManager languageManager) { _localizationManager = localizationManager; _cacheManager = cacheManager; _languageManager = languageManager; }
/// <summary> /// Initializes a new instance of <see cref="AbstractUserControl"/> for specified <see cref="ILanguageManager"/> /// and <see cref="IWindowManager"/>. /// </summary> /// <param name="LanguageManager">LanguageManager API</param> /// <param name="WindowManager">WindowManager API</param> public AbstractUserControl(ILanguageManager LanguageManager, IWindowManager WindowManager) { if (LanguageManager == null) { throw new ArgumentException("LanguageManager cannot be null"); } this.WindowManager = WindowManager; this.LanguageManager = LanguageManager; this.LanguageManager.LanguageChangedProxy(new BaseEventProxy(OnLanguageChanged)); }
public LanguagesController( ILanguageAppService languageAppService, ILanguageManager languageManager, IApplicationLanguageTextManager applicationLanguageTextManager) { _languageAppService = languageAppService; _languageManager = languageManager; _applicationLanguageTextManager = applicationLanguageTextManager; }
/// <summary> /// Основной конструктор /// </summary> /// <param name="view"></param> /// <param name="db"></param> /// <param name="selectedChatID"></param> public DictionaryChatPresenter(IDictionaryChatView view, ISQLiteTesting db, int selectedChatID) { this.view = view; this.db = db; this.selectedChatID = selectedChatID; LanguageManager languageManager = new LanguageManager(db); this.chatHistoryManager = new ChatHistoryManager(db); this.chatManager = new ChatManager(db, languageManager, chatHistoryManager); this.languageManager = new LanguageManager(db); }
/// <summary> /// Constructor. /// </summary> public LocalizationManager( ILanguageManager languageManager, ILocalizationConfiguration configuration, IIocResolver iocResolver) { Logger = NullLogger.Instance; _languageManager = languageManager; _configuration = configuration; _iocResolver = iocResolver; _sources = new Dictionary<string, ILocalizationSource>(); }
public MethodBodyVM(MethodBodyOptions options, ModuleDef ownerModule, ILanguageManager languageManager, TypeDef ownerType, MethodDef ownerMethod) { this.origOptions = options; this.nativeMethodBodyVM = new MethodBody.NativeMethodBodyVM(options.NativeMethodBodyOptions, false); NativeMethodBodyVM.PropertyChanged += (s, e) => HasErrorUpdated(); this.cilBodyVM = new MethodBody.CilBodyVM(options.CilBodyOptions, ownerModule, languageManager, ownerType, ownerMethod, false); CilBodyVM.PropertyChanged += (s, e) => HasErrorUpdated(); this.methodBodyTypeVM = new EnumListVM(methodBodyTypeList, (a, b) => OnMethodBodyTypeChanged()); Reinitialize(); }
public LayoutController( IUserNavigationManager userNavigationManager, ISessionAppService sessionAppService, IMultiTenancyConfig multiTenancyConfig, ILanguageManager languageManager) { _userNavigationManager = userNavigationManager; _sessionAppService = sessionAppService; _multiTenancyConfig = multiTenancyConfig; _languageManager = languageManager; }
public SecurityAttributeVM(SecurityAttribute sa, ModuleDef ownerModule, ILanguageManager languageManager, TypeDef ownerType, MethodDef ownerMethod) { this.origSa = sa; this.ownerModule = ownerModule; this.caNamedArgumentsVM = new CANamedArgumentsVM(ownerModule, languageManager, ownerType, ownerMethod, a => { // The named args blob length must also be at most 0x1FFFFFFF bytes but we can't verify it here return a.Collection.Count < ModelUtils.COMPRESSED_UINT32_MAX; }); CANamedArgumentsVM.Collection.CollectionChanged += Args_CollectionChanged; Reinitialize(); }
LanguageComboBoxToolbarCommand(ILanguageManager languageManager) { this.languageManager = languageManager; this.infos = languageManager.AllLanguages.OrderBy(a => a.OrderUI).Select(a => new LanguageInfo { Language = a }).ToList(); UpdateSelectedItem(); this.comboBox = new ComboBox { DisplayMemberPath = "Name", Width = 80, ItemsSource = infos, }; this.comboBox.SetBinding(Selector.SelectedItemProperty, new Binding("SelectedItem") { Source = this, }); languageManager.LanguageChanged += LanguageManager_LanguageChanged; }
public ExportToProjectVM(IPickDirectory pickDirectory, ILanguageManager languageManager, IExportTask exportTask, bool canDecompileBaml) { this.pickDirectory = pickDirectory; this.languageManager = languageManager; this.exportTask = exportTask; this.canDecompileBaml = canDecompileBaml; this.unpackResources = true; this.createResX = true; this.decompileXaml = canDecompileBaml; this.createSolution = true; this.projectVersionVM.SelectedItem = ProjectVersion.VS2010; this.language = languageManager.Languages.FirstOrDefault(a => a.ProjectFileExtension != null); this.isIndeterminate = false; }
FileTreeViewCreator(IThemeManager themeManager, ITreeViewManager treeViewManager, ILanguageManager languageManager, IFileManagerCreator fileManagerCreator, IFileTreeViewSettings fileTreeViewSettings, IMenuManager menuManager, IDotNetImageManager dotNetImageManager, IWpfCommandManager wpfCommandManager, IResourceNodeFactory resourceNodeFactory, IAppSettings appSettings, [ImportMany] IEnumerable<Lazy<IDnSpyFileNodeCreator, IDnSpyFileNodeCreatorMetadata>> dnSpyFileNodeCreators, [ImportMany] IEnumerable<Lazy<IFileTreeNodeDataFinder, IFileTreeNodeDataFinderMetadata>> mefFinders) { this.themeManager = themeManager; this.treeViewManager = treeViewManager; this.languageManager = languageManager; this.fileManagerCreator = fileManagerCreator; this.fileTreeViewSettings = fileTreeViewSettings; this.menuManager = menuManager; this.dotNetImageManager = dotNetImageManager; this.wpfCommandManager = wpfCommandManager; this.resourceNodeFactory = resourceNodeFactory; this.appSettings = appSettings; this.dnSpyFileNodeCreators = dnSpyFileNodeCreators.ToArray(); this.mefFinders = mefFinders.ToArray(); }
/// <summary> /// Clean up any resources being used. /// </summary> protected override void Dispose( bool disposing ) { if ( disposing ) { if(components != null) { components.Dispose(); } _assemblyBrowser = null; _assemblyManager = null; _languageManager = null; _TranslatorManager = null; } base.Dispose( disposing ); }
public FileDisassemblerHelper( IAssemblyManager assemblyManager, ITranslatorManager TranslatorManager, ILanguageManager languageManager, int projectType, string outputDirectory, WriteLineDelegate writeLineDelegate, SetProgressBarDelegate setProgressBarDelegate) { _assemblyManager = assemblyManager; _TranslatorManager = TranslatorManager; _languageManager = languageManager; _projectType = projectType; _outputDirectory = outputDirectory; WriteLine += writeLineDelegate; SetProgressBar += setProgressBarDelegate; }
public void Load(IServiceProvider serviceProvider) { this.delphiLanguage = new JavaScriptLanguage(true); //this.delphiLanguage.VisibilityConfiguration = (IVisibilityConfiguration) serviceProvider.GetService(typeof(IVisibilityConfiguration)); //this.delphiLanguage.FormatterConfiguration = (IFormatterConfiguration) serviceProvider.GetService(typeof(IFormatterConfiguration)); this.languageManager = (ILanguageManager)serviceProvider.GetService(typeof(ILanguageManager)); for (int i = this.languageManager.Languages.Count - 1; i >= 0; i--) { if (this.languageManager.Languages[i].Name == "JavaScript") { this.languageManager.UnregisterLanguage(this.languageManager.Languages[i]); } } this.languageManager.RegisterLanguage(this.delphiLanguage); }
public UrlParser(IPersister persister, IHost host, IWebContext webContext, IItemNotifier notifier, HostSection config, ILanguageManager languageManager, CustomUrlsSection urls, GlobalizationSection globalizationConfig) { _persister = persister; _host = host; _webContext = webContext; _ignoreExistingFiles = config.Web.IgnoreExistingFiles; notifier.ItemCreated += OnItemCreated; _languageManager = languageManager; DefaultDocument = "default"; _useBrowserLanguagePreferences = (globalizationConfig != null) ? globalizationConfig.UseBrowserLanguagePreferences : false; _configUrlsSection = urls; }
public FileDisassemblerHelper( IAssemblyManager assemblyManager, ITranslatorManager TranslatorManager, ILanguageManager languageManager, int projectType, string outputDirectory, WriteLineDelegate writeLineDelegate, SetProgressBarDelegate setProgressBarDelegate, bool documentation, bool membersBody, bool publicOnly) { _assemblyManager = assemblyManager; _TranslatorManager = TranslatorManager; _languageManager = languageManager; _projectType = projectType; _outputDirectory = outputDirectory; this.documentation = documentation; this.membersBody = membersBody; this.publicOnly = publicOnly; WriteLine += writeLineDelegate; SetProgressBar += setProgressBarDelegate; }
public TypeDefOrRefAndCAVM(TypeDefOrRefAndCAOptions options, ModuleDef ownerModule, ILanguageManager languageManager, TypeDef ownerType, MethodDef ownerMethod) { this.origOptions = options; var typeSigCreatorOptions = new TypeSigCreatorOptions(ownerModule, languageManager) { IsLocal = false, CanAddGenericTypeVar = true, CanAddGenericMethodVar = false, OwnerType = ownerType, OwnerMethod = ownerMethod, }; if (ownerType != null && ownerType.GenericParameters.Count == 0) typeSigCreatorOptions.CanAddGenericTypeVar = false; if (ownerMethod != null && ownerMethod.GenericParameters.Count > 0) typeSigCreatorOptions.CanAddGenericMethodVar = true; this.typeSigCreator = new TypeSigCreatorVM(typeSigCreatorOptions); TypeSigCreator.PropertyChanged += TypeSigCreator_PropertyChanged; this.customAttributesVM = new CustomAttributesVM(ownerModule, languageManager); Reinitialize(); }
AnalyzeCommandLoader(IMainToolWindowManager mainToolWindowManager, IWpfCommandManager wpfCommandManager, IFileTabManager fileTabManager, Lazy<IAnalyzerManager> analyzerManager, ILanguageManager languageManager) { this.mainToolWindowManager = mainToolWindowManager; this.fileTabManager = fileTabManager; this.analyzerManager = analyzerManager; this.languageManager = languageManager; var cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_TEXTEDITOR_UICONTEXT); cmds.Add(AnalyzeRoutedCommand, TextEditor_Executed, TextEditor_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_FILE_TREEVIEW); cmds.Add(AnalyzeRoutedCommand, FileTreeView_Executed, FileTreeView_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_ANALYZER_TREEVIEW); cmds.Add(AnalyzeRoutedCommand, AnalyzerTreeView_Executed, AnalyzerTreeView_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); cmds = wpfCommandManager.GetCommands(CommandConstants.GUID_SEARCH_LISTBOX); cmds.Add(AnalyzeRoutedCommand, SearchListBox_Executed, SearchListBox_CanExecute, ModifierKeys.Control, Key.R); cmds.Add(AnalyzeRoutedCommand, ShowAnalyzerExecuted, ShowAnalyzerCanExecute, ModifierKeys.Control, Key.R); }
AppWindow(IThemeManager themeManager, IImageManager imageManager, IAppSettings appSettings, ISettingsManager settingsManager, IFileTabManager fileTabManager, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandManager wpfCommandManager, ILanguageManager languageManager) { this.assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly); this.uiSettings = new UISettings(settingsManager); this.uiSettings.Read(); this.appSettings = appSettings; this.stackedContent = new StackedContent<IStackedContentChild>(margin: new Thickness(6)); this.themeManager = themeManager; themeManager.ThemeChanged += ThemeManager_ThemeChanged; this.imageManager = imageManager; this.fileTabManager = fileTabManager; this.statusBar = new AppStatusBar(); this.appToolBar = appToolBar; this.mainWindowControl = mainWindowControl; this.wpfCommandManager = wpfCommandManager; this.languageManager = languageManager; this.mainWindowCommands = wpfCommandManager.GetCommands(CommandConstants.GUID_MAINWINDOW); this.mainWindowClosing = new WeakEventList<CancelEventArgs>(); this.mainWindowClosed = new WeakEventList<EventArgs>(); this.appSettings.PropertyChanged += AppSettings_PropertyChanged; InitializeTextFormatterProvider(); }
public LanguageManagerTests() { _languages = new LanguageManager(); }
Loader(IAppWindow appWindow, IImageManager imageManager, IFileTreeView fileTreeView, IFileSearcherProvider fileSearcherProvider, ILanguageManager languageManager, IFileTreeViewProvider fileTreeViewProvider, IFileTreeViewSettings fileTreeViewSettings) { DnlibTypePicker.appWindow = appWindow; DnlibTypePicker.imageManager = imageManager; DnlibTypePicker.fileTreeView = fileTreeView; DnlibTypePicker.fileSearcherProvider = fileSearcherProvider; DnlibTypePicker.languageManager = languageManager; DnlibTypePicker.fileTreeViewProvider = fileTreeViewProvider; DnlibTypePicker.fileTreeViewSettings = fileTreeViewSettings; }
public CustomerTypesController( ILanguageManager languageManager, ICustomerTypeRepository customerTypeRepo) : base(languageManager) { _customerTypeRepo = customerTypeRepo; }
/// <summary> /// Add a Localization listener to catch the event that is invoked when the selected language is changed. /// </summary> /// <param name="localize"></param> public void AddOnLocalizeEvent(ILanguageManager localize) { Localize.RemoveListener(localize.OnLocalize); Localize.AddListener(localize.OnLocalize); localize.OnLocalize(); }
RedecompileTabs(IFileTabManager fileTabManager, ILanguageManager languageManager, IAppWindow appWindow) { this.fileTabManager = fileTabManager; this.appWindow = appWindow; languageManager.LanguageChanged += LanguageManager_LanguageChanged; }
AnalyzerManager(IWpfCommandManager wpfCommandManager, IFileTabManager fileTabManager, ITreeViewManager treeViewManager, IMenuManager menuManager, IThemeManager themeManager, IAnalyzerSettings analyzerSettings, IDotNetImageManager dotNetImageManager, ILanguageManager languageManager) { this.fileTabManager = fileTabManager; this.context = new AnalyzerTreeNodeDataContext { DotNetImageManager = dotNetImageManager, Language = languageManager.Language, FileManager = fileTabManager.FileTreeView.FileManager, ShowToken = analyzerSettings.ShowToken, SingleClickExpandsChildren = analyzerSettings.SingleClickExpandsChildren, SyntaxHighlight = analyzerSettings.SyntaxHighlight, UseNewRenderer = analyzerSettings.UseNewRenderer, AnalyzerManager = this, }; var options = new TreeViewOptions { CanDragAndDrop = false, TreeViewListener = this, }; this.TreeView = treeViewManager.Create(ANALYZER_TREEVIEW_GUID, options); fileTabManager.FileTreeView.FileManager.CollectionChanged += FileManager_CollectionChanged; fileTabManager.FileModified += FileTabManager_FileModified; languageManager.LanguageChanged += LanguageManager_LanguageChanged; themeManager.ThemeChanged += ThemeManager_ThemeChanged; analyzerSettings.PropertyChanged += AnalyzerSettings_PropertyChanged; menuManager.InitializeContextMenu((FrameworkElement)this.TreeView.UIObject, new Guid(MenuConstants.GUIDOBJ_ANALYZER_TREEVIEW_GUID), new GuidObjectsProvider(this.TreeView)); wpfCommandManager.Add(ControlConstants.GUID_ANALYZER_TREEVIEW, (UIElement)this.TreeView.UIObject); var cmds = wpfCommandManager.GetCommands(ControlConstants.GUID_ANALYZER_TREEVIEW); var command = new RelayCommand(a => ActivateNode()); cmds.Add(command, ModifierKeys.Control, Key.Enter); cmds.Add(command, ModifierKeys.Shift, Key.Enter); }
/// <summary> /// Initialize all static data. Log configuration should be performed earlier than any other initializations. /// </summary> static Program() { log4net.Config.XmlConfigurator.Configure(); langManager = new LanguageManager(); }
public RightNavbarLanguageSwitchViewComponent(ILanguageManager languageManager) { _languageManager = languageManager; }
public void Initialize(string sourceName) { _sourceName = sourceName; _languageManager = _iocManager.Resolve <ILanguageManager>(); _internalProvider.Initialize(_sourceName); }
public TopBarLanguageSwitchViewComponent(ILanguageManager languageManager) { _languageManager = languageManager; }
/// <summary> /// Initializes a new instance of the <see cref="LanguageController"/> class. /// </summary> /// <param name="languageManager"> /// The language manager. /// </param> public LanguageController(ILanguageManager languageManager) { this.languageManager = languageManager; }
public MemberPickerVM(IFileSearcherCreator fileSearcherCreator, IFileTreeView fileTreeView, ILanguageManager languageManager, IFileTreeNodeFilter filter, string title, IEnumerable <IDnSpyFile> assemblies) { this.title = title; this.fileSearcherCreator = fileSearcherCreator; this.languageManager = languageManager; this.fileTreeView = fileTreeView; this.language = languageManager.Language; this.filter = filter; this.delayedSearch = new DelayedAction(DEFAULT_DELAY_SEARCH_MS, DelayStartSearch); this.searchResults = new ObservableCollection <ISearchResult>(); this.searchResultsCollectionView = (ListCollectionView)CollectionViewSource.GetDefaultView(searchResults); this.searchResultsCollectionView.CustomSort = new SearchResult_Comparer(); foreach (var file in assemblies) { fileTreeView.FileManager.ForceAdd(file, false, null); } fileTreeView.FileManager.CollectionChanged += (s, e) => Restart(); this.CaseSensitive = false; this.MatchWholeWords = false; this.MatchAnySearchTerm = false; RefreshTreeView(); }
public MethodOverridesVM(ModuleDef ownerModule, ILanguageManager languageManager, TypeDef ownerType, MethodDef ownerMethod) : base(dnSpy_AsmEditor_Resources.EditMethodOverride, dnSpy_AsmEditor_Resources.CreateMethodOverride, ownerModule, languageManager, ownerType, ownerMethod) { }
public K9AbpUserConfigurationBuilder(IMultiTenancyConfig multiTenancyConfig, ILanguageManager languageManager, ILocalizationManager localizationManager, IFeatureManager featureManager, IFeatureChecker featureChecker, IPermissionManager permissionManager, IUserNavigationManager userNavigationManager, ISettingDefinitionManager settingDefinitionManager, ISettingManager settingManager, IAbpAntiForgeryConfiguration abpAntiForgeryConfiguration, IAbpSession abpSession, IPermissionChecker permissionChecker, IIocResolver iocResolver, IAbpStartupConfiguration startupConfiguration) : base(multiTenancyConfig, languageManager, localizationManager, featureManager, featureChecker, permissionManager, userNavigationManager, settingDefinitionManager, settingManager, abpAntiForgeryConfiguration, abpSession, permissionChecker, iocResolver, startupConfiguration) { }
public CommercialController(ICommercialManager commercialManager, IMyUserManager myUserManager, ILanguageManager languageManager) : base(myUserManager, languageManager) { this.commercialManager = commercialManager; }
AppWindow(IThemeManager themeManager, IImageManager imageManager, IAppSettings appSettings, ISettingsManager settingsManager, IFileTabManager fileTabManager, AppToolBar appToolBar, MainWindowControl mainWindowControl, IWpfCommandManager wpfCommandManager, ILanguageManager languageManager) { this.assemblyInformationalVersion = CalculateAssemblyInformationalVersion(GetType().Assembly); this.uiSettings = new UISettings(settingsManager); this.uiSettings.Read(); this.appSettings = appSettings; this.stackedContent = new StackedContent <IStackedContentChild>(margin: new Thickness(6)); this.themeManager = themeManager; themeManager.ThemeChanged += ThemeManager_ThemeChanged; this.imageManager = imageManager; this.fileTabManager = fileTabManager; this.statusBar = new AppStatusBar(); this.appToolBar = appToolBar; this.mainWindowControl = mainWindowControl; this.wpfCommandManager = wpfCommandManager; this.languageManager = languageManager; this.mainWindowCommands = wpfCommandManager.GetCommands(ControlConstants.GUID_MAINWINDOW); this.mainWindowClosing = new WeakEventList <CancelEventArgs>(); this.mainWindowClosed = new WeakEventList <EventArgs>(); }
public AccountLanguagesViewComponent(ILanguageManager languageManager) { _languageManager = languageManager; }
public LocalizationLanguageManager(IStringLocalizerFactory stringLocalizerFactory, ILanguageManager languageManager, ILogger logger) { _stringLocalizerFactory = stringLocalizerFactory; _languageManager = languageManager; _logger = logger; }
/// <summary> /// Removes a Localization listener. /// </summary> /// <param name="localize"></param> public void RemoveOnLocalizeEvent(ILanguageManager localize) { Localize.RemoveListener(localize.OnLocalize); }
public UnitsController( ILanguageManager languageManager, IUnitRepository unitRepo) : base(languageManager) { _unitRepo = unitRepo; }
public LanguageSelectionViewComponent(ILanguageManager languageManager) { _languageManager = languageManager; }
public TypeDefOrRefAndCAVM(TypeDefOrRefAndCAOptions options, ModuleDef ownerModule, ILanguageManager languageManager, TypeDef ownerType, MethodDef ownerMethod) { this.origOptions = options; var typeSigCreatorOptions = new TypeSigCreatorOptions(ownerModule, languageManager) { IsLocal = false, CanAddGenericTypeVar = true, CanAddGenericMethodVar = false, OwnerType = ownerType, OwnerMethod = ownerMethod, }; if (ownerType != null && ownerType.GenericParameters.Count == 0) { typeSigCreatorOptions.CanAddGenericTypeVar = false; } if (ownerMethod != null && ownerMethod.GenericParameters.Count > 0) { typeSigCreatorOptions.CanAddGenericMethodVar = true; } this.typeSigCreator = new TypeSigCreatorVM(typeSigCreatorOptions); TypeSigCreator.PropertyChanged += TypeSigCreator_PropertyChanged; this.customAttributesVM = new CustomAttributesVM(ownerModule, languageManager); Reinitialize(); }
/// <summary> /// Gets the default message for a property validator /// </summary> /// <typeparam name="T">The validator type</typeparam> /// <returns>The translated string</returns> public static string GetStringForValidator <T>(this ILanguageManager languageManager) { return(languageManager.GetString(typeof(T).Name)); }