コード例 #1
0
        public ExceptionHandlerVM(TypeSigCreatorOptions typeSigCreatorOptions, ExceptionHandlerOptions options)
        {
            this.typeSigCreatorOptions                    = typeSigCreatorOptions.Clone(dnSpy_AsmEditor_Resources.CreateAnExceptionCatchType);
            this.typeSigCreatorOptions.IsLocal            = false;
            this.typeSigCreatorOptions.NullTypeSigAllowed = true;
            origOptions   = options;
            HandlerTypeVM = new EnumListVM(exceptionHandlerTypeList);
            TryStartVM    = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            TryEndVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            FilterStartVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            HandlerStartVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            HandlerEndVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };

            Reinitialize();
        }
コード例 #2
0
ファイル: ExceptionHandlerVM.cs プロジェクト: softearth/dnSpy
        public ExceptionHandlerVM(TypeSigCreatorOptions typeSigCreatorOptions, ExceptionHandlerOptions options)
        {
            this.typeSigCreatorOptions                    = typeSigCreatorOptions.Clone("Create an Exception Catch Type");
            this.typeSigCreatorOptions.IsLocal            = false;
            this.typeSigCreatorOptions.NullTypeSigAllowed = true;
            this.origOptions   = options;
            this.handlerTypeVM = new EnumListVM(exceptionHandlerTypeList);
            this.tryStartVM    = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            this.tryEndVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            this.filterStartVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            this.handlerStartVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };
            this.handlerEndVM = new ListVM <InstructionVM>((a, b) => OnSelectionChanged())
            {
                DataErrorInfoDelegate = VerifyInstruction
            };

            Reinitialize();
        }
コード例 #3
0
ファイル: LocalVM.cs プロジェクト: ottrur/dnSpy
        public LocalVM(TypeSigCreatorOptions typeSigCreatorOptions, LocalOptions options)
        {
            this.typeSigCreatorOptions                    = typeSigCreatorOptions.Clone("Create a Local Type");
            this.typeSigCreatorOptions.IsLocal            = true;
            this.typeSigCreatorOptions.NullTypeSigAllowed = false;
            this.origOptions = options;

            Reinitialize();
        }
コード例 #4
0
ファイル: LocalVM.cs プロジェクト: xi4oyu/dnSpy
        public LocalVM(TypeSigCreatorOptions typeSigCreatorOptions, LocalOptions options)
        {
            this.typeSigCreatorOptions                    = typeSigCreatorOptions.Clone(dnSpy_AsmEditor_Resources.CreateLocalType);
            this.typeSigCreatorOptions.IsLocal            = true;
            this.typeSigCreatorOptions.NullTypeSigAllowed = false;
            origOptions = options;

            Reinitialize();
        }