MemoryToolWindowContentProvider(IWpfCommandService wpfCommandService, Lazy<HexEditorGroupFactoryService> hexEditorGroupFactoryService, Lazy<IMemoryVM> memoryVM) {
			this.wpfCommandService = wpfCommandService;
			this.hexEditorGroupFactoryService = hexEditorGroupFactoryService;
			this.memoryVM = memoryVM;
			contents = new TWContent[MemoryWindowsHelper.NUMBER_OF_MEMORY_WINDOWS];
			for (int i = 0; i < contents.Length; i++) {
				var tmpIndex = i;
				contents[i] = new TWContent(i, () => CreateContent(tmpIndex));
			}
		}
Exemple #2
0
 MemoryToolWindowContentProvider(IWpfCommandService wpfCommandService, Lazy <HexEditorGroupFactoryService> hexEditorGroupFactoryService, Lazy <IMemoryVM> memoryVM)
 {
     this.wpfCommandService            = wpfCommandService;
     this.hexEditorGroupFactoryService = hexEditorGroupFactoryService;
     this.memoryVM = memoryVM;
     contents      = new TWContent[MemoryWindowsHelper.NUMBER_OF_MEMORY_WINDOWS];
     for (int i = 0; i < contents.Length; i++)
     {
         var tmpIndex = i;
         contents[i] = new TWContent(i, () => CreateContent(tmpIndex));
     }
 }
        protected VariablesWindowToolWindowContentProviderBase(int maxWindows, Guid contentGuid, double contentOrder)
        {
            this.contentOrder = contentOrder;
            contents          = new TWContent[maxWindows];
            var guidString = contentGuid.ToString();

            Debug.Assert(guidString.Length == 36);
            var  guidBase  = guidString.Substring(0, 36 - 8);
            uint lastDword = uint.Parse(guidString.Substring(36 - 8), NumberStyles.HexNumber);

            for (int i = 0; i < contents.Length; i++)
            {
                var tmpIndex = i;
                var guid     = new Guid(guidBase + (lastDword + (uint)i).ToString("X8"));
                var title    = GetWindowTitle(i);
                contents[i] = new TWContent(i, guid, title, () => CreateContent(tmpIndex));
            }
        }
        IMemoryContent CreateMemoryContent(TWContent info)
        {
            var vm = new MemoryVM(theDebugger.Value);

            return(new MemoryContent(wpfCommandManager, themeManager, menuManager, hexEditorSettings, vm, appSettings));
        }
		IMemoryContent CreateMemoryContent(TWContent info) {
			var vm = new MemoryVM(theDebugger.Value);
			return new MemoryContent(wpfCommandManager, themeManager, menuManager, hexEditorSettings, vm, appSettings);
		}
Exemple #6
0
 IMemoryContent CreateMemoryContent(TWContent info) =>
 new MemoryContent(wpfCommandService, memoryVM.Value, hexEditorGroupFactoryService.Value);
Exemple #7
0
 IMemoryContent CreateMemoryContent(TWContent info) =>
 new MemoryContent(wpfCommandService, menuService, hexEditorSettings, new MemoryVM(theDebugger.Value), appSettings);
 IMemoryContent CreateMemoryContent(TWContent info) =>
 new MemoryContent(wpfCommandService, memoryVM.Value, processHexBufferProvider.Value, hexEditorGroupFactoryService.Value);
		IMemoryContent CreateMemoryContent(TWContent info) =>
			new MemoryContent(wpfCommandService, memoryVM.Value, hexEditorGroupFactoryService.Value);
Exemple #10
0
 IMemoryContent CreateMemoryContent(TWContent info) =>
 new MemoryContent(wpfCommandManager, themeManager, menuManager, hexEditorSettings, new MemoryVM(theDebugger.Value), appSettings);