Exemplo n.º 1
0
		public NetModuleOptions CreateNetModuleOptions() {
			var options = new NetModuleOptions();
			options.Name = Name ?? UTF8String.Empty;
			options.ClrVersion = (ClrVersion)ClrVersion.SelectedItem;
			options.Mvid = Mvid.Value;
			return options;
		}
Exemplo n.º 2
0
        public NetModuleOptions CreateNetModuleOptions()
        {
            var options = new NetModuleOptions();

            options.Name       = Name ?? UTF8String.Empty;
            options.ClrVersion = (ClrVersion)ClrVersion.SelectedItem;
            options.Mvid       = Mvid.Value;
            return(options);
        }
Exemplo n.º 3
0
        CreateNetModuleCommand(Lazy <IUndoCommandService> undoCommandService, IDocumentTreeView documentTreeView, NetModuleOptions options)
        {
            this.undoCommandService = undoCommandService;
            var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);
            var file   = DsDotNetDocument.CreateModule(DsDocumentInfo.CreateDocument(string.Empty), module, true);

            fileNodeCreator = RootDocumentNodeCreator.CreateModule(documentTreeView, file);
        }
Exemplo n.º 4
0
        CreateNetModuleCommand(Lazy <IUndoCommandManager> undoCommandManager, IFileTreeView fileTreeView, NetModuleOptions options)
        {
            this.undoCommandManager = undoCommandManager;
            var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);
            var file   = DnSpyDotNetFile.CreateModule(DnSpyFileInfo.CreateFile(string.Empty), module, fileTreeView.FileManager.Settings.LoadPDBFiles);

            this.fileNodeCreator = RootDnSpyFileNodeCreator.CreateModule(fileTreeView, file);
        }
Exemplo n.º 5
0
 CreateNetModuleCommand(NetModuleOptions options)
 {
     var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);
     this.asmNodeCreator = new AssemblyTreeNodeCreator(new LoadedAssembly(MainWindow.Instance.CurrentAssemblyList, module));
 }
Exemplo n.º 6
0
 AddNewNetModuleToAssemblyCommand(AssemblyTreeNode asmNode, NetModuleOptions options)
     : base(asmNode, new AssemblyTreeNode(new LoadedAssembly(MainWindow.Instance.CurrentAssemblyList, ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion))), true)
 {
 }
Exemplo n.º 7
0
 AddNewNetModuleToAssemblyCommand(AssemblyTreeNode asmNode, NetModuleOptions options)
     : base(asmNode, new AssemblyTreeNode(new LoadedAssembly(MainWindow.Instance.CurrentAssemblyList, ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion))), true)
 {
 }
Exemplo n.º 8
0
		CreateNetModuleCommand(Lazy<IUndoCommandManager> undoCommandManager, IFileTreeView fileTreeView, NetModuleOptions options) {
			this.undoCommandManager = undoCommandManager;
			var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);
			var file = DnSpyDotNetFile.CreateModule(DnSpyFileInfo.CreateFile(string.Empty), module, fileTreeView.FileManager.Settings.LoadPDBFiles);
			this.fileNodeCreator = RootDnSpyFileNodeCreator.CreateModule(fileTreeView, file);
		}
Exemplo n.º 9
0
        CreateNetModuleCommand(NetModuleOptions options)
        {
            var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);

            this.asmNodeCreator = new AssemblyTreeNodeCreator(new LoadedAssembly(MainWindow.Instance.CurrentAssemblyList, module));
        }
Exemplo n.º 10
0
		CreateNetModuleCommand(NetModuleOptions options) {
			var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);
			this.asmNodeCreator = new AssemblyTreeNodeCreator(MainWindow.Instance.DnSpyFileList.CreateDnSpyFile(module));
		}
Exemplo n.º 11
0
		AddNewNetModuleToAssemblyCommand(AssemblyTreeNode asmNode, NetModuleOptions options)
			: base(asmNode, new AssemblyTreeNode(MainWindow.Instance.DnSpyFileList.CreateDnSpyFile(ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion))), true) {
		}
Exemplo n.º 12
0
 AddNewNetModuleToAssemblyCommand(AssemblyTreeNode asmNode, NetModuleOptions options)
     : base(asmNode, new AssemblyTreeNode(MainWindow.Instance.DnSpyFileList.CreateDnSpyFile(ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion))), true)
 {
 }
Exemplo n.º 13
0
        CreateNetModuleCommand(NetModuleOptions options)
        {
            var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);

            this.asmNodeCreator = new AssemblyTreeNodeCreator(MainWindow.Instance.DnSpyFileList.CreateDnSpyFile(module));
        }
Exemplo n.º 14
0
		CreateNetModuleCommand(Lazy<IUndoCommandService> undoCommandService, IDocumentTreeView documentTreeView, NetModuleOptions options) {
			this.undoCommandService = undoCommandService;
			var module = ModuleUtils.CreateNetModule(options.Name, options.Mvid, options.ClrVersion);
			var file = DsDotNetDocument.CreateModule(DsDocumentInfo.CreateDocument(string.Empty), module, true);
			fileNodeCreator = RootDocumentNodeCreator.CreateModule(documentTreeView, file);
		}