コード例 #1
0
        public static void Execute(DecompilerTextView textView)
        {
            if (!CanExecute(textView))
            {
                return;
            }

            var copier = new InstructionILBytesCopier();
            var text   = copier.Copy(FindInstructions(textView));

            if (text.Length > 0)
            {
                Clipboard.SetText(text);
                if (copier.FoundUnknownBytes)
                {
                    MainWindow.Instance.ShowIgnorableMessageBox("instr: unknown bytes",
                                                                "Some of the copied bytes are unknown because the method has been edited. New tokens and string offsets are only known once the file has been saved to disk.",
                                                                MessageBoxButton.OK);
                }
            }
        }
コード例 #2
0
        public static void Execute(DecompilerTextView textView)
        {
            if (!CanExecute(textView))
                return;

            var copier = new InstructionILBytesCopier();
            var text = copier.Copy(FindInstructions(textView));
            if (text.Length > 0) {
                Clipboard.SetText(text);
                if (copier.FoundUnknownBytes) {
                    MainWindow.Instance.ShowIgnorableMessageBox("instr: unknown bytes",
                        "Some of the copied bytes are unknown because the method has been edited. New tokens and string offsets are only known once the file has been saved to disk.",
                        MessageBoxButton.OK);
                }
            }
        }