Inheritance: System.Windows.Forms.Control
Ejemplo n.º 1
0
 void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
 {
     switch (connectionId)
     {
     case 1:
         this.hb = ((Be.Windows.Forms.HexBox)(target));
         return;
     }
     this._contentLoaded = true;
 }
        public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex)
        {
            //graphics.FillRectangle( new SolidBrush( Color.Beige ), _recHex );

            if (Box.BytesPerLine == 8)
            {
                int        spriteSize      = (int)(Box.CharSize.Height * 8) - 2;
                ByteBuffer spriteData      = new ByteBuffer(64);
                int        firstSprite     = (int)(_startByte / 64);
                int        firstTrueByte   = firstSprite * 64;
                int        firstLineOffset = (int)(_startByte - firstTrueByte) / 8;
                int        lastTrueByte    = (int)(intern_endByte - _startByte) + firstTrueByte;
                int        lastSprite      = (int)lastTrueByte / 64;
                if (lastSprite * 64 > intern_endByte)
                {
                    ++lastSprite;
                }

                var oldClip = graphics.Clip;
                graphics.SetClip(_recHex);

                for (int j = firstSprite; j <= lastSprite; ++j)
                {
                    for (int i = 0; i < 64; ++i)
                    {
                        spriteData.SetU8At(i, Box.ByteProvider.ReadByte(firstTrueByte + (j - firstSprite) * 64 + i));
                    }
                    using (GR.Image.FastImage spriteImage = new GR.Image.FastImage(24, 21, System.Drawing.Imaging.PixelFormat.Format8bppIndexed))
                    {
                        spriteImage.Box(0, 0, 24, 21, 1);
                        PaletteManager.ApplyPalette(spriteImage);

                        if (MultiColor)
                        {
                            SpriteDisplayer.DisplayMultiColorSprite(spriteData, ConstantData.Palette, 24, 21, BackgroundColor, MultiColor1, MultiColor2, CustomColor, spriteImage, 0, 0);
                        }
                        else
                        {
                            SpriteDisplayer.DisplayHiResSprite(spriteData, ConstantData.Palette, 24, 21, BackgroundColor, CustomColor, spriteImage, 0, 0);
                        }

                        int offsetY = (int)(Box.CharSize.Height * (j - firstSprite) * 8 + (Box.CharSize.Height * 8 - spriteSize) / 2) - (int)(Box.CharSize.Height * firstLineOffset);

                        using (System.Drawing.Image img = spriteImage.GetAsBitmap())
                        {
                            graphics.InterpolationMode = System.Drawing.Drawing2D.InterpolationMode.NearestNeighbor;
                            graphics.DrawImage(img, new Rectangle(_recHex.Left, _recHex.Top + offsetY, spriteSize, spriteSize));
                        }
                    }
                }

                graphics.Clip = oldClip;
            }
        }
Ejemplo n.º 3
0
        public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex)
        {
            //if ( Box.BytesPerLine == 8 )
            {
                var oldClip = graphics.Clip;
                graphics.SetClip(_recHex);

                GR.Image.FastImage charImage = new GR.Image.FastImage(8, 8, System.Drawing.Imaging.PixelFormat.Format8bppIndexed);
                PaletteManager.ApplyPalette(charImage);

                for (int i = 0; i < intern_endByte - _startByte; ++i)
                {
                    byte character    = Box.ByteProvider.ReadByte(_startByte + i);
                    int  displayColor = 0;
                    int  bgColor      = 1;

                    if ((_startByte + i >= Box.SelectionStart) &&
                        (_startByte + i < Box.SelectionStart + Box.SelectionLength))
                    {
                        displayColor = 1;
                        bgColor      = 14;
                    }

                    switch (Mode)
                    {
                    case PETSCIIDisplay.UPPER_CASE:
                        CharacterDisplayer.DisplayHiResChar(ConstantData.UpperCaseCharsetC64.SubBuffer(character * 8, 8),
                                                            ConstantData.Palette,
                                                            bgColor, displayColor,
                                                            charImage, 0, 0);
                        break;

                    case PETSCIIDisplay.LOWER_CASE:
                        CharacterDisplayer.DisplayHiResChar(ConstantData.LowerCaseCharsetC64.SubBuffer(character * 8, 8),
                                                            ConstantData.Palette,
                                                            bgColor, displayColor,
                                                            charImage, 0, 0);
                        break;
                    }

                    charImage.DrawToHDC(graphics.GetHdc(),
                                        new Rectangle(_recHex.Left + (int)Box.CharSize.Width * (i % 8),
                                                      (int)(_recHex.Top + (i / 8) * (int)Box.CharSize.Height + (Box.CharSize.Height - Box.CharSize.Width) / 2),
                                                      (int)Box.CharSize.Width,
                                                      (int)Box.CharSize.Width));
                    graphics.ReleaseHdc();
                }
                charImage.Dispose();

                graphics.Clip = oldClip;
            }
        }
Ejemplo n.º 4
0
        public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex)
        {
            if (Box.BytesPerLine == 8)
            {
                var oldClip = graphics.Clip;
                graphics.SetClip(_recHex);

                int        boxSize  = (int)Box.CharSize.Height - 2;
                ByteBuffer charData = new ByteBuffer(8);
                for (int j = 0; j < (intern_endByte - _startByte) / 8; ++j)
                {
                    for (int i = 0; i < 8; ++i)
                    {
                        charData.SetU8At(i, Box.ByteProvider.ReadByte(_startByte + j * 8 + i));
                    }
                    using (GR.Image.FastImage charImage = new GR.Image.FastImage(8, 8, System.Drawing.Imaging.PixelFormat.Format8bppIndexed))
                    {
                        PaletteManager.ApplyPalette(charImage);

                        switch (Mode)
                        {
                        case TextMode.COMMODORE_40_X_25_HIRES:
                            CharacterDisplayer.DisplayHiResChar(charData, ConstantData.Palette, BackgroundColor, CustomColor, charImage, 0, 0);
                            break;

                        case TextMode.COMMODORE_40_X_25_MULTICOLOR:
                            CharacterDisplayer.DisplayMultiColorChar(charData, ConstantData.Palette, BackgroundColor, CustomColor, MultiColor1, MultiColor2, charImage, 0, 0);
                            break;

                        case TextMode.COMMODORE_40_X_25_ECM:
                            // TODO - not correct
                            CharacterDisplayer.DisplayHiResChar(charData, ConstantData.Palette, BackgroundColor, CustomColor, charImage, 0, 0);
                            break;

                        default:
                            Debug.Log("PaintHexData: Missing mode displayer");
                            break;
                        }

                        charImage.DrawToHDC(graphics.GetHdc(),
                                            new Rectangle(_recHex.Left, (int)(_recHex.Top + Box.CharSize.Height * j + (Box.CharSize.Height - boxSize) / 2), boxSize, boxSize));
                        graphics.ReleaseHdc();
                    }
                }

                graphics.Clip = oldClip;
            }
        }
Ejemplo n.º 5
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.MenNew = ((System.Windows.Controls.MenuItem)(target));

            #line 16 "..\..\..\Controls\HexEditor.xaml"
                this.MenNew.Click += new System.Windows.RoutedEventHandler(this.MenNew_Click);

            #line default
            #line hidden
                return;

            case 2:
                this.MenLoad = ((System.Windows.Controls.MenuItem)(target));

            #line 18 "..\..\..\Controls\HexEditor.xaml"
                this.MenLoad.Click += new System.Windows.RoutedEventHandler(this.MenLoad_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.MenSave = ((System.Windows.Controls.MenuItem)(target));

            #line 19 "..\..\..\Controls\HexEditor.xaml"
                this.MenSave.Click += new System.Windows.RoutedEventHandler(this.MenSave_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.Whost = ((System.Windows.Forms.Integration.WindowsFormsHost)(target));
                return;

            case 5:
                this.hexBox = ((Be.Windows.Forms.HexBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 6
0
        public void PaintHexData(HexBox Box, Graphics graphics, long _startByte, long intern_endByte, Rectangle _recHex)
        {
            if (Box.BytesPerLine == 8)
            {
                var oldClip = graphics.Clip;
                graphics.SetClip(_recHex);

                int        boxSize  = (int)Box.CharSize.Height - 2;
                ByteBuffer charData = new ByteBuffer(8);
                for (int j = 0; j < (intern_endByte - _startByte) / 8; ++j)
                {
                    for (int i = 0; i < 8; ++i)
                    {
                        charData.SetU8At(i, Box.ByteProvider.ReadByte(_startByte + j * 8 + i));
                    }
                    GR.Image.FastImage charImage = new GR.Image.FastImage(8, 8, System.Drawing.Imaging.PixelFormat.Format8bppIndexed);
                    C64Studio.CustomRenderer.PaletteManager.ApplyPalette(charImage);

                    switch (Mode)
                    {
                    case C64Studio.Types.CharsetMode.HIRES:
                        CharacterDisplayer.DisplayHiResChar(charData, BackgroundColor, CustomColor, charImage, 0, 0);
                        break;

                    case C64Studio.Types.CharsetMode.MULTICOLOR:
                        CharacterDisplayer.DisplayMultiColorChar(charData, BackgroundColor, CustomColor, MultiColor1, MultiColor2, charImage, 0, 0);
                        break;

                    case C64Studio.Types.CharsetMode.ECM:
                        // TODO!
                        CharacterDisplayer.DisplayHiResChar(charData, BackgroundColor, CustomColor, charImage, 0, 0);
                        break;
                    }

                    charImage.DrawToHDC(graphics.GetHdc(),
                                        new Rectangle(_recHex.Left, (int)(_recHex.Top + Box.CharSize.Height * j + (Box.CharSize.Height - boxSize) / 2), boxSize, boxSize));
                    graphics.ReleaseHdc();
                    charImage.Dispose();
                }

                graphics.Clip = oldClip;
            }
        }
Ejemplo n.º 7
0
        public DebuggerView(MmuByteProvider mmuByteProvider)
        {
            _hexBox = new HexBox
            {
                ReadOnly = false,
                AllowDrop = false,
                LineInfoVisible = true,
                ColumnInfoVisible = true,
                UseFixedBytesPerLine = true,
                VScrollBarVisible = true,
                BytesPerLine = 16,
                HexCasing = HexCasing.Lower,
                ByteCharConverter = new DefaultByteCharConverter(),
                Font = new Font(
                    System.Drawing.SystemFonts.MessageBoxFont.FontFamily,
                    System.Drawing.SystemFonts.MessageBoxFont.Size,
                    System.Drawing.SystemFonts.MessageBoxFont.Style),
                ByteProvider = mmuByteProvider
            };

            InitializeComponent();
        }
Ejemplo n.º 8
0
        private void hexBoxInit()
        {
            this.hexBox1                         = new Be.Windows.Forms.HexBox();
            this.hexBox1.AllowDrop               = true;
            this.hexBox1.BackColor               = System.Drawing.SystemColors.Window;
            this.hexBox1.ColumnInfoVisible       = true;
            this.hexBox1.Dock                    = System.Windows.Forms.DockStyle.Fill;
            this.hexBox1.Font                    = new System.Drawing.Font("Microsoft Sans Serif", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.hexBox1.InfoForeColor           = System.Drawing.SystemColors.InactiveCaption;
            this.hexBox1.LineInfoVisible         = true;
            this.hexBox1.Location                = new System.Drawing.Point(3, 3);
            this.hexBox1.Name                    = "hexBox1";
            this.hexBox1.SelectionBackColor      = System.Drawing.SystemColors.Highlight;
            this.hexBox1.ShadowSelectionColor    = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
            this.hexBox1.Size                    = new System.Drawing.Size(520, 292);
            this.hexBox1.StringViewVisible       = true;
            this.hexBox1.TabIndex                = 0;
            this.hexBox1.VScrollBarVisible       = true;
            this.hexBox1.SelectionStartChanged  += new System.EventHandler(this.hexBox1_SelectionStartChanged);
            this.hexBox1.SelectionLengthChanged += new System.EventHandler(this.hexBox1_SelectionLengthChanged);

            this.EditPage.Controls.Add(hexBox1);
        }
Ejemplo n.º 9
0
        void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target)
        {
            switch (connectionId)
            {
            case 1:
                this.menu1 = ((System.Windows.Controls.Menu)(target));
                return;

            case 2:
                this.menuOpenEncrypyFile = ((System.Windows.Controls.MenuItem)(target));

            #line 24 "..\..\..\..\View\WinSH46.xaml"
                this.menuOpenEncrypyFile.Click += new System.Windows.RoutedEventHandler(this.menuOpenEncpyptFile_Click);

            #line default
            #line hidden
                return;

            case 3:
                this.menuOpenDecrypyFile = ((System.Windows.Controls.MenuItem)(target));

            #line 25 "..\..\..\..\View\WinSH46.xaml"
                this.menuOpenDecrypyFile.Click += new System.Windows.RoutedEventHandler(this.menuOpenDecryptFile_Click);

            #line default
            #line hidden
                return;

            case 4:
                this.tbManufacturer = ((System.Windows.Controls.TextBox)(target));

            #line 43 "..\..\..\..\View\WinSH46.xaml"
                this.tbManufacturer.GotFocus += new System.Windows.RoutedEventHandler(this.tbManufacturer_GotFocus);

            #line default
            #line hidden
                return;

            case 5:
                this.tbManufacturerbkp = ((System.Windows.Controls.TextBox)(target));

            #line 44 "..\..\..\..\View\WinSH46.xaml"
                this.tbManufacturerbkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbManufacturerbkp_GotFocus);

            #line default
            #line hidden
                return;

            case 6:
                this.cbManufacturerSelect = ((System.Windows.Controls.ComboBox)(target));
                return;

            case 7:
                this.tbActivateKey = ((System.Windows.Controls.TextBox)(target));

            #line 49 "..\..\..\..\View\WinSH46.xaml"
                this.tbActivateKey.GotFocus += new System.Windows.RoutedEventHandler(this.tbActivateKey_GotFocus);

            #line default
            #line hidden
                return;

            case 8:
                this.tbActivateKeybkp = ((System.Windows.Controls.TextBox)(target));

            #line 50 "..\..\..\..\View\WinSH46.xaml"
                this.tbActivateKeybkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbActivateKeybkp_GotFocus);

            #line default
            #line hidden
                return;

            case 9:
                this.cbActivateKeySelect = ((System.Windows.Controls.ComboBox)(target));

            #line 51 "..\..\..\..\View\WinSH46.xaml"
                this.cbActivateKeySelect.SelectionChanged += new System.Windows.Controls.SelectionChangedEventHandler(this.cbActivateKeySelect_SelectionChanged);

            #line default
            #line hidden
                return;

            case 10:
                this.tbKeyIdentification1 = ((System.Windows.Controls.TextBox)(target));

            #line 55 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification1.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification1_GotFocus);

            #line default
            #line hidden
                return;

            case 11:
                this.tbKeyIdentification1bkp = ((System.Windows.Controls.TextBox)(target));

            #line 56 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification1bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification1bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 12:
                this.tbKeyIdentification2 = ((System.Windows.Controls.TextBox)(target));

            #line 60 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification2.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification2_GotFocus);

            #line default
            #line hidden
                return;

            case 13:
                this.tbKeyIdentification2bkp = ((System.Windows.Controls.TextBox)(target));

            #line 61 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification2bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification2bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 14:
                this.tbKeyIdentification3 = ((System.Windows.Controls.TextBox)(target));

            #line 65 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification3.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification3_GotFocus);

            #line default
            #line hidden
                return;

            case 15:
                this.tbKeyIdentification3bkp = ((System.Windows.Controls.TextBox)(target));

            #line 66 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification3bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification3bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 16:
                this.tbKeyIdentification4 = ((System.Windows.Controls.TextBox)(target));

            #line 70 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification4.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification4_GotFocus);

            #line default
            #line hidden
                return;

            case 17:
                this.tbKeyIdentification4bkp = ((System.Windows.Controls.TextBox)(target));

            #line 71 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification4bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification4bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 18:
                this.tbKeyIdentification5 = ((System.Windows.Controls.TextBox)(target));

            #line 75 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification5.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification5_GotFocus);

            #line default
            #line hidden
                return;

            case 19:
                this.tbKeyIdentification5bkp = ((System.Windows.Controls.TextBox)(target));

            #line 76 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyIdentification5bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyIdentification5bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 20:
                this.tbPin = ((System.Windows.Controls.TextBox)(target));

            #line 80 "..\..\..\..\View\WinSH46.xaml"
                this.tbPin.GotFocus += new System.Windows.RoutedEventHandler(this.tbPin_GotFocus);

            #line default
            #line hidden
                return;

            case 21:
                this.tbPinbkp = ((System.Windows.Controls.TextBox)(target));

            #line 81 "..\..\..\..\View\WinSH46.xaml"
                this.tbPinbkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbPinbkp_GotFocus);

            #line default
            #line hidden
                return;

            case 22:
                this.tbfield1 = ((System.Windows.Controls.TextBox)(target));

            #line 85 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield1.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield1_GotFocus);

            #line default
            #line hidden
                return;

            case 23:
                this.tbfield1bkp = ((System.Windows.Controls.TextBox)(target));

            #line 86 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield1bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield1bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 24:
                this.tbfield2 = ((System.Windows.Controls.TextBox)(target));

            #line 90 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield2.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield2_GotFocus);

            #line default
            #line hidden
                return;

            case 25:
                this.tbfield2bkp = ((System.Windows.Controls.TextBox)(target));

            #line 91 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield2bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield2bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 26:
                this.tbfield3 = ((System.Windows.Controls.TextBox)(target));

            #line 95 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield3.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield3_GotFocus);

            #line default
            #line hidden
                return;

            case 27:
                this.tbfield3bkp = ((System.Windows.Controls.TextBox)(target));

            #line 96 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield3bkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield3bkp_GotFocus);

            #line default
            #line hidden
                return;

            case 28:
                this.tbKeyNum = ((System.Windows.Controls.TextBox)(target));

            #line 100 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyNum.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyNum_GotFocus);

            #line default
            #line hidden
                return;

            case 29:
                this.tbKeyNumbkp = ((System.Windows.Controls.TextBox)(target));

            #line 101 "..\..\..\..\View\WinSH46.xaml"
                this.tbKeyNumbkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbKeyNumbkp_GotFocus);

            #line default
            #line hidden
                return;

            case 30:
                this.tbSecretkey = ((System.Windows.Controls.TextBox)(target));

            #line 105 "..\..\..\..\View\WinSH46.xaml"
                this.tbSecretkey.GotFocus += new System.Windows.RoutedEventHandler(this.tbSecretkey_GotFocus);

            #line default
            #line hidden
                return;

            case 31:
                this.tbSecretkeybkp = ((System.Windows.Controls.TextBox)(target));

            #line 106 "..\..\..\..\View\WinSH46.xaml"
                this.tbSecretkeybkp.GotFocus += new System.Windows.RoutedEventHandler(this.tbSecretkeybkp_GotFocus);

            #line default
            #line hidden
                return;

            case 32:
                this.tbfield4 = ((System.Windows.Controls.TextBox)(target));

            #line 110 "..\..\..\..\View\WinSH46.xaml"
                this.tbfield4.GotFocus += new System.Windows.RoutedEventHandler(this.tbfield4_GotFocus);

            #line default
            #line hidden
                return;

            case 33:
                this.tbImmobiliserCode = ((System.Windows.Controls.TextBox)(target));

            #line 114 "..\..\..\..\View\WinSH46.xaml"
                this.tbImmobiliserCode.GotFocus += new System.Windows.RoutedEventHandler(this.tbImmobiliserCode_GotFocus);

            #line default
            #line hidden
                return;

            case 34:
                this.tbVid = ((System.Windows.Controls.TextBox)(target));

            #line 118 "..\..\..\..\View\WinSH46.xaml"
                this.tbVid.GotFocus += new System.Windows.RoutedEventHandler(this.tbVid_GotFocus);

            #line default
            #line hidden
                return;

            case 35:
                this.tbVidASCII = ((System.Windows.Controls.TextBox)(target));

            #line 119 "..\..\..\..\View\WinSH46.xaml"
                this.tbVidASCII.GotFocus += new System.Windows.RoutedEventHandler(this.tbVidASCII_GotFocus);

            #line default
            #line hidden
                return;

            case 36:
                this.tbInfo = ((System.Windows.Controls.TextBox)(target));
                return;

            case 37:
                this.btnFix = ((System.Windows.Controls.Button)(target));

            #line 130 "..\..\..\..\View\WinSH46.xaml"
                this.btnFix.Click += new System.Windows.RoutedEventHandler(this.btnFix_Click);

            #line default
            #line hidden
                return;

            case 38:
                this.btnAlter = ((System.Windows.Controls.Button)(target));

            #line 131 "..\..\..\..\View\WinSH46.xaml"
                this.btnAlter.Click += new System.Windows.RoutedEventHandler(this.btnAlter_Click);

            #line default
            #line hidden
                return;

            case 39:
                this.btnExportDecrypt = ((System.Windows.Controls.Button)(target));

            #line 132 "..\..\..\..\View\WinSH46.xaml"
                this.btnExportDecrypt.Click += new System.Windows.RoutedEventHandler(this.btnExportDecrypt_Click);

            #line default
            #line hidden
                return;

            case 40:
                this.btnExportEncrypt = ((System.Windows.Controls.Button)(target));

            #line 133 "..\..\..\..\View\WinSH46.xaml"
                this.btnExportEncrypt.Click += new System.Windows.RoutedEventHandler(this.btnExportEncrypt_Click);

            #line default
            #line hidden
                return;

            case 41:
                this.gdHex = ((System.Windows.Controls.Grid)(target));
                return;

            case 42:
                this.DecryptPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 43:
                this.hbDecrypt = ((Be.Windows.Forms.HexBox)(target));
                return;

            case 44:
                this.EncryptPanel = ((System.Windows.Controls.StackPanel)(target));
                return;

            case 45:
                this.hbEncrypt = ((Be.Windows.Forms.HexBox)(target));
                return;
            }
            this._contentLoaded = true;
        }
Ejemplo n.º 10
0
 public EmptyKeyInterpreter(HexBox hexBox) => _hexBox = hexBox;
Ejemplo n.º 11
0
 public KeyInterpreter(HexBox hexBox) => _hexBox = hexBox;
Ejemplo n.º 12
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFind));
     this.txtFind = new System.Windows.Forms.TextBox();
     this.rbString = new System.Windows.Forms.RadioButton();
     this.rbHex = new System.Windows.Forms.RadioButton();
     this.label1 = new System.Windows.Forms.Label();
     this.btnOK = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.lblPercent = new System.Windows.Forms.Label();
     this.lblFinding = new System.Windows.Forms.Label();
     this.chkMatchCase = new System.Windows.Forms.CheckBox();
     this.timerPercent = new System.Windows.Forms.Timer(this.components);
     this.timer = new System.Windows.Forms.Timer(this.components);
     this.hexFind = new Be.Windows.Forms.HexBox();
     this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
     this.flowLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // txtFind
     //
     resources.ApplyResources(this.txtFind, "txtFind");
     this.txtFind.Name = "txtFind";
     this.txtFind.TextChanged += new System.EventHandler(this.txtString_TextChanged);
     //
     // rbString
     //
     resources.ApplyResources(this.rbString, "rbString");
     this.rbString.Checked = true;
     this.rbString.Name = "rbString";
     this.rbString.TabStop = true;
     //
     // rbHex
     //
     resources.ApplyResources(this.rbHex, "rbHex");
     this.rbHex.Name = "rbHex";
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.ForeColor = System.Drawing.Color.Blue;
     this.label1.Name = "label1";
     //
     // btnOK
     //
     resources.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.Name = "btnOK";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     resources.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // groupBox1
     //
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // lblPercent
     //
     resources.ApplyResources(this.lblPercent, "lblPercent");
     this.lblPercent.Name = "lblPercent";
     //
     // lblFinding
     //
     resources.ApplyResources(this.lblFinding, "lblFinding");
     this.lblFinding.ForeColor = System.Drawing.Color.Blue;
     this.lblFinding.Name = "lblFinding";
     //
     // chkMatchCase
     //
     resources.ApplyResources(this.chkMatchCase, "chkMatchCase");
     this.chkMatchCase.Name = "chkMatchCase";
     this.chkMatchCase.UseVisualStyleBackColor = true;
     //
     // timerPercent
     //
     this.timerPercent.Tick += new System.EventHandler(this.timerPercent_Tick);
     //
     // timer
     //
     this.timer.Interval = 50;
     this.timer.Tick += new System.EventHandler(this.timer_Tick);
     //
     // hexFind
     //
     resources.ApplyResources(this.hexFind, "hexFind");
     //
     //
     //
     //this.hexFind.BuiltInContextMenu.CopyMenuItemImage = global::Be.HexEditor.images.CopyHS;
     //this.hexFind.BuiltInContextMenu.CopyMenuItemText = resources.GetString("hexFind.BuiltInContextMenu.CopyMenuItemText");
     //this.hexFind.BuiltInContextMenu.CutMenuItemImage = global::Be.HexEditor.images.CutHS;
     //this.hexFind.BuiltInContextMenu.CutMenuItemText = resources.GetString("hexFind.BuiltInContextMenu.CutMenuItemText");
     //this.hexFind.BuiltInContextMenu.PasteMenuItemImage = global::Be.HexEditor.images.PasteHS;
     //this.hexFind.BuiltInContextMenu.PasteMenuItemText = resources.GetString("hexFind.BuiltInContextMenu.PasteMenuItemText");
     //this.hexFind.BuiltInContextMenu.SelectAllMenuItemText = resources.GetString("hexFind.BuiltInContextMenu.SelectAllMenuItemText");
     this.hexFind.InfoForeColor = System.Drawing.Color.Empty;
     this.hexFind.Name = "hexFind";
     this.hexFind.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     //
     // flowLayoutPanel1
     //
     resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
     this.flowLayoutPanel1.Controls.Add(this.label1);
     this.flowLayoutPanel1.Controls.Add(this.groupBox1);
     this.flowLayoutPanel1.Name = "flowLayoutPanel1";
     //
     // FormFind
     //
     this.AcceptButton = this.btnOK;
     resources.ApplyResources(this, "$this");
     this.BackColor = System.Drawing.SystemColors.Control;
     this.CancelButton = this.btnCancel;
     this.Controls.Add(this.flowLayoutPanel1);
     this.Controls.Add(this.chkMatchCase);
     this.Controls.Add(this.lblPercent);
     this.Controls.Add(this.lblFinding);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtFind);
     this.Controls.Add(this.hexFind);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "FormFind";
     this.ShowIcon = false;
     this.ShowInTaskbar = false;
     this.Activated += new System.EventHandler(this.FormFind_Activated);
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 13
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.hexBox    = new Be.Windows.Forms.HexBox();
     this.txtString = new System.Windows.Forms.TextBox();
     this.rbString  = new System.Windows.Forms.RadioButton();
     this.rbHex     = new System.Windows.Forms.RadioButton();
     this.label1    = new System.Windows.Forms.Label();
     this.btnOK     = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.SuspendLayout();
     //
     // hexBox
     //
     this.hexBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     this.hexBox.Enabled              = false;
     this.hexBox.Font                 = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.hexBox.LineInfoForeColor    = System.Drawing.Color.Empty;
     this.hexBox.Location             = new System.Drawing.Point(16, 104);
     this.hexBox.Name                 = "hexBox";
     this.hexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     this.hexBox.Size                 = new System.Drawing.Size(304, 88);
     this.hexBox.TabIndex             = 3;
     //
     // txtString
     //
     this.txtString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.txtString.Location = new System.Drawing.Point(16, 56);
     this.txtString.Name     = "txtString";
     this.txtString.Size     = new System.Drawing.Size(304, 20);
     this.txtString.TabIndex = 1;
     //
     // rbString
     //
     this.rbString.Checked   = true;
     this.rbString.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.rbString.Location  = new System.Drawing.Point(16, 40);
     this.rbString.Name      = "rbString";
     this.rbString.Size      = new System.Drawing.Size(104, 16);
     this.rbString.TabIndex  = 0;
     this.rbString.TabStop   = true;
     this.rbString.Text      = "String";
     //
     // rbHex
     //
     this.rbHex.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.rbHex.Location  = new System.Drawing.Point(16, 88);
     this.rbHex.Name      = "rbHex";
     this.rbHex.Size      = new System.Drawing.Size(104, 16);
     this.rbHex.TabIndex  = 2;
     this.rbHex.Text      = "Hex";
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.ForeColor = System.Drawing.Color.Blue;
     this.label1.Location  = new System.Drawing.Point(16, 16);
     this.label1.Name      = "label1";
     this.label1.Size      = new System.Drawing.Size(40, 16);
     this.label1.TabIndex  = 6;
     this.label1.Text      = "Find";
     //
     // btnOK
     //
     this.btnOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnOK.Location     = new System.Drawing.Point(245, 211);
     this.btnOK.Name         = "btnOK";
     this.btnOK.Size         = new System.Drawing.Size(75, 23);
     this.btnOK.TabIndex     = 4;
     this.btnOK.Text         = "Find next";
     this.btnOK.Click       += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(164, 211);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex     = 5;
     this.btnCancel.Text         = "Cancel";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // groupBox1
     //
     this.groupBox1.Location = new System.Drawing.Point(48, 16);
     this.groupBox1.Name     = "groupBox1";
     this.groupBox1.Size     = new System.Drawing.Size(272, 8);
     this.groupBox1.TabIndex = 9;
     this.groupBox1.TabStop  = false;
     //
     // FormFind
     //
     this.AcceptButton               = this.btnOK;
     this.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Appearance.Options.UseFont = true;
     this.AutoScaleBaseSize          = new System.Drawing.Size(5, 14);
     this.CancelButton               = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(336, 246);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtString);
     this.Controls.Add(this.hexBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FormFind";
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Find";
     this.Activated      += new System.EventHandler(this.FormFind_Activated);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 14
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFind));
     this.hexBox = new Be.Windows.Forms.HexBox();
     this.txtString = new System.Windows.Forms.TextBox();
     this.rbString = new System.Windows.Forms.RadioButton();
     this.rbHex = new System.Windows.Forms.RadioButton();
     this.label1 = new System.Windows.Forms.Label();
     this.btnOK = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.SuspendLayout();
     //
     // hexBox
     //
     this.hexBox.AccessibleDescription = null;
     this.hexBox.AccessibleName = null;
     resources.ApplyResources(this.hexBox, "hexBox");
     this.hexBox.BackgroundImage = null;
     this.hexBox.LineInfoForeColor = System.Drawing.Color.Empty;
     this.hexBox.Name = "hexBox";
     this.hexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     //
     // txtString
     //
     this.txtString.AccessibleDescription = null;
     this.txtString.AccessibleName = null;
     resources.ApplyResources(this.txtString, "txtString");
     this.txtString.BackgroundImage = null;
     this.txtString.Font = null;
     this.txtString.Name = "txtString";
     //
     // rbString
     //
     this.rbString.AccessibleDescription = null;
     this.rbString.AccessibleName = null;
     resources.ApplyResources(this.rbString, "rbString");
     this.rbString.BackgroundImage = null;
     this.rbString.Checked = true;
     this.rbString.Font = null;
     this.rbString.Name = "rbString";
     this.rbString.TabStop = true;
     //
     // rbHex
     //
     this.rbHex.AccessibleDescription = null;
     this.rbHex.AccessibleName = null;
     resources.ApplyResources(this.rbHex, "rbHex");
     this.rbHex.BackgroundImage = null;
     this.rbHex.Font = null;
     this.rbHex.Name = "rbHex";
     //
     // label1
     //
     this.label1.AccessibleDescription = null;
     this.label1.AccessibleName = null;
     resources.ApplyResources(this.label1, "label1");
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Font = null;
     this.label1.ForeColor = System.Drawing.Color.Blue;
     this.label1.Name = "label1";
     //
     // btnOK
     //
     this.btnOK.AccessibleDescription = null;
     this.btnOK.AccessibleName = null;
     resources.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.BackgroundImage = null;
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnOK.Font = null;
     this.btnOK.Name = "btnOK";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.AccessibleDescription = null;
     this.btnCancel.AccessibleName = null;
     resources.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.BackgroundImage = null;
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font = null;
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = null;
     this.groupBox1.AccessibleName = null;
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.BackgroundImage = null;
     this.groupBox1.Font = null;
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // FormFind
     //
     this.AcceptButton = this.btnOK;
     this.AccessibleDescription = null;
     this.AccessibleName = null;
     this.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Appearance.Options.UseFont = true;
     resources.ApplyResources(this, "$this");
     this.CancelButton = this.btnCancel;
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtString);
     this.Controls.Add(this.hexBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon = null;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "FormFind";
     this.Activated += new System.EventHandler(this.FormFind_Activated);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 15
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFind));
     this.hexBox    = new Be.Windows.Forms.HexBox();
     this.txtString = new System.Windows.Forms.TextBox();
     this.rbString  = new System.Windows.Forms.RadioButton();
     this.rbHex     = new System.Windows.Forms.RadioButton();
     this.label1    = new System.Windows.Forms.Label();
     this.btnOK     = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.SuspendLayout();
     //
     // hexBox
     //
     this.hexBox.AccessibleDescription = null;
     this.hexBox.AccessibleName        = null;
     resources.ApplyResources(this.hexBox, "hexBox");
     this.hexBox.BackgroundImage   = null;
     this.hexBox.LineInfoForeColor = System.Drawing.Color.Empty;
     this.hexBox.Name = "hexBox";
     this.hexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     //
     // txtString
     //
     this.txtString.AccessibleDescription = null;
     this.txtString.AccessibleName        = null;
     resources.ApplyResources(this.txtString, "txtString");
     this.txtString.BackgroundImage = null;
     this.txtString.Font            = null;
     this.txtString.Name            = "txtString";
     //
     // rbString
     //
     this.rbString.AccessibleDescription = null;
     this.rbString.AccessibleName        = null;
     resources.ApplyResources(this.rbString, "rbString");
     this.rbString.BackgroundImage = null;
     this.rbString.Checked         = true;
     this.rbString.Font            = null;
     this.rbString.Name            = "rbString";
     this.rbString.TabStop         = true;
     //
     // rbHex
     //
     this.rbHex.AccessibleDescription = null;
     this.rbHex.AccessibleName        = null;
     resources.ApplyResources(this.rbHex, "rbHex");
     this.rbHex.BackgroundImage = null;
     this.rbHex.Font            = null;
     this.rbHex.Name            = "rbHex";
     //
     // label1
     //
     this.label1.AccessibleDescription = null;
     this.label1.AccessibleName        = null;
     resources.ApplyResources(this.label1, "label1");
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.Font      = null;
     this.label1.ForeColor = System.Drawing.Color.Blue;
     this.label1.Name      = "label1";
     //
     // btnOK
     //
     this.btnOK.AccessibleDescription = null;
     this.btnOK.AccessibleName        = null;
     resources.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.BackgroundImage = null;
     this.btnOK.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.btnOK.Font            = null;
     this.btnOK.Name            = "btnOK";
     this.btnOK.Click          += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.AccessibleDescription = null;
     this.btnCancel.AccessibleName        = null;
     resources.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.BackgroundImage = null;
     this.btnCancel.DialogResult    = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Font            = null;
     this.btnCancel.Name            = "btnCancel";
     this.btnCancel.Click          += new System.EventHandler(this.btnCancel_Click);
     //
     // groupBox1
     //
     this.groupBox1.AccessibleDescription = null;
     this.groupBox1.AccessibleName        = null;
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.BackgroundImage = null;
     this.groupBox1.Font            = null;
     this.groupBox1.Name            = "groupBox1";
     this.groupBox1.TabStop         = false;
     //
     // FormFind
     //
     this.AcceptButton               = this.btnOK;
     this.AccessibleDescription      = null;
     this.AccessibleName             = null;
     this.Appearance.Font            = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Appearance.Options.UseFont = true;
     resources.ApplyResources(this, "$this");
     this.CancelButton = this.btnCancel;
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtString);
     this.Controls.Add(this.hexBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.Icon            = null;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FormFind";
     this.Activated      += new System.EventHandler(this.FormFind_Activated);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 16
0
 /// <summary>
 /// Initializes a new instance of BuildInContextMenu class.
 /// </summary>
 /// <param name="hexBox">the HexBox control</param>
 internal BuiltInContextMenu(HexBox hexBox)
 {
     _hexBox = hexBox;
     _hexBox.ByteProviderChanged += HexBox_ByteProviderChanged;
 }
Ejemplo n.º 17
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.hexBox    = new Be.Windows.Forms.HexBox();
     this.txtString = new System.Windows.Forms.TextBox();
     this.rbString  = new System.Windows.Forms.RadioButton();
     this.rbHex     = new System.Windows.Forms.RadioButton();
     this.btnOK     = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.SuspendLayout();
     //
     // hexBox
     //
     this.hexBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                                                                 | System.Windows.Forms.AnchorStyles.Left)
                                                                | System.Windows.Forms.AnchorStyles.Right)));
     //
     //
     //
     this.hexBox.BuiltInContextMenu.CopyMenuItemImage  = global::Reflexil.Properties.Resources.CopyHS;
     this.hexBox.BuiltInContextMenu.CutMenuItemImage   = global::Reflexil.Properties.Resources.CutHS;
     this.hexBox.BuiltInContextMenu.PasteMenuItemImage = global::Reflexil.Properties.Resources.PasteHS;
     this.hexBox.Enabled              = false;
     this.hexBox.Font                 = new System.Drawing.Font("Courier New", 9F);
     this.hexBox.HexCasing            = Be.Windows.Forms.HexCasing.Lower;
     this.hexBox.LineInfoForeColor    = System.Drawing.Color.Empty;
     this.hexBox.Location             = new System.Drawing.Point(12, 76);
     this.hexBox.Name                 = "hexBox";
     this.hexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     this.hexBox.Size                 = new System.Drawing.Size(304, 126);
     this.hexBox.TabIndex             = 3;
     //
     // txtString
     //
     this.txtString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                                                                   | System.Windows.Forms.AnchorStyles.Right)));
     this.txtString.Location = new System.Drawing.Point(12, 28);
     this.txtString.Name     = "txtString";
     this.txtString.Size     = new System.Drawing.Size(304, 21);
     this.txtString.TabIndex = 1;
     //
     // rbString
     //
     this.rbString.Checked  = true;
     this.rbString.ImeMode  = System.Windows.Forms.ImeMode.NoControl;
     this.rbString.Location = new System.Drawing.Point(12, 12);
     this.rbString.Name     = "rbString";
     this.rbString.Size     = new System.Drawing.Size(104, 16);
     this.rbString.TabIndex = 0;
     this.rbString.TabStop  = true;
     this.rbString.Text     = "Text";
     //
     // rbHex
     //
     this.rbHex.ImeMode  = System.Windows.Forms.ImeMode.NoControl;
     this.rbHex.Location = new System.Drawing.Point(12, 60);
     this.rbHex.Name     = "rbHex";
     this.rbHex.Size     = new System.Drawing.Size(104, 16);
     this.rbHex.TabIndex = 2;
     this.rbHex.Text     = "Hex";
     //
     // btnOK
     //
     this.btnOK.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnOK.Location     = new System.Drawing.Point(160, 211);
     this.btnOK.Name         = "btnOK";
     this.btnOK.Size         = new System.Drawing.Size(75, 23);
     this.btnOK.TabIndex     = 4;
     this.btnOK.Text         = "Find next";
     this.btnOK.Click       += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor       = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location     = new System.Drawing.Point(241, 211);
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Size         = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex     = 5;
     this.btnCancel.Text         = "Cancel";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // HexFindForm
     //
     this.AcceptButton      = this.btnOK;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.BackColor         = System.Drawing.SystemColors.Control;
     this.CancelButton      = this.btnCancel;
     this.ClientSize        = new System.Drawing.Size(336, 246);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtString);
     this.Controls.Add(this.hexBox);
     this.Font            = new System.Drawing.Font("Tahoma", 8.25F);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "HexFindForm";
     this.ShowInTaskbar   = false;
     this.StartPosition   = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text            = "Find";
     this.Activated      += new System.EventHandler(this.FormFind_Activated);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 18
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.components = new System.ComponentModel.Container();
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormFind));
     this.txtFind          = new System.Windows.Forms.TextBox();
     this.rbString         = new System.Windows.Forms.RadioButton();
     this.rbHex            = new System.Windows.Forms.RadioButton();
     this.label1           = new System.Windows.Forms.Label();
     this.btnOK            = new System.Windows.Forms.Button();
     this.btnCancel        = new System.Windows.Forms.Button();
     this.groupBox1        = new System.Windows.Forms.GroupBox();
     this.lblPercent       = new System.Windows.Forms.Label();
     this.lblFinding       = new System.Windows.Forms.Label();
     this.chkMatchCase     = new System.Windows.Forms.CheckBox();
     this.timerPercent     = new System.Windows.Forms.Timer(this.components);
     this.timer            = new System.Windows.Forms.Timer(this.components);
     this.hexFind          = new Be.Windows.Forms.HexBox();
     this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
     this.flowLayoutPanel1.SuspendLayout();
     this.SuspendLayout();
     //
     // txtFind
     //
     resources.ApplyResources(this.txtFind, "txtFind");
     this.txtFind.Name         = "txtFind";
     this.txtFind.TextChanged += new System.EventHandler(this.txtString_TextChanged);
     //
     // rbString
     //
     resources.ApplyResources(this.rbString, "rbString");
     this.rbString.Checked = true;
     this.rbString.Name    = "rbString";
     this.rbString.TabStop = true;
     //
     // rbHex
     //
     resources.ApplyResources(this.rbHex, "rbHex");
     this.rbHex.Name = "rbHex";
     //
     // label1
     //
     resources.ApplyResources(this.label1, "label1");
     this.label1.ForeColor = System.Drawing.Color.Blue;
     this.label1.Name      = "label1";
     //
     // btnOK
     //
     resources.ApplyResources(this.btnOK, "btnOK");
     this.btnOK.Name   = "btnOK";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     resources.ApplyResources(this.btnCancel, "btnCancel");
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Name         = "btnCancel";
     this.btnCancel.Click       += new System.EventHandler(this.btnCancel_Click);
     //
     // groupBox1
     //
     resources.ApplyResources(this.groupBox1, "groupBox1");
     this.groupBox1.Name    = "groupBox1";
     this.groupBox1.TabStop = false;
     //
     // lblPercent
     //
     resources.ApplyResources(this.lblPercent, "lblPercent");
     this.lblPercent.Name = "lblPercent";
     //
     // lblFinding
     //
     resources.ApplyResources(this.lblFinding, "lblFinding");
     this.lblFinding.ForeColor = System.Drawing.Color.Blue;
     this.lblFinding.Name      = "lblFinding";
     //
     // chkMatchCase
     //
     resources.ApplyResources(this.chkMatchCase, "chkMatchCase");
     this.chkMatchCase.Name = "chkMatchCase";
     this.chkMatchCase.UseVisualStyleBackColor = true;
     //
     // timerPercent
     //
     this.timerPercent.Tick += new System.EventHandler(this.timerPercent_Tick);
     //
     // timer
     //
     this.timer.Interval = 50;
     this.timer.Tick    += new System.EventHandler(this.timer_Tick);
     //
     // hexFind
     //
     resources.ApplyResources(this.hexFind, "hexFind");
     //
     //
     //
     this.hexFind.BuiltInContextMenu.CopyMenuItemImage     = global::Be.HexEditor.images.CopyHS;
     this.hexFind.BuiltInContextMenu.CopyMenuItemText      = resources.GetString("hexFind.BuiltInContextMenu.CopyMenuItemText");
     this.hexFind.BuiltInContextMenu.CutMenuItemImage      = global::Be.HexEditor.images.CutHS;
     this.hexFind.BuiltInContextMenu.CutMenuItemText       = resources.GetString("hexFind.BuiltInContextMenu.CutMenuItemText");
     this.hexFind.BuiltInContextMenu.PasteMenuItemImage    = global::Be.HexEditor.images.PasteHS;
     this.hexFind.BuiltInContextMenu.PasteMenuItemText     = resources.GetString("hexFind.BuiltInContextMenu.PasteMenuItemText");
     this.hexFind.BuiltInContextMenu.SelectAllMenuItemText = resources.GetString("hexFind.BuiltInContextMenu.SelectAllMenuItemText");
     this.hexFind.InfoForeColor        = System.Drawing.Color.Empty;
     this.hexFind.Name                 = "hexFind";
     this.hexFind.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     //
     // flowLayoutPanel1
     //
     resources.ApplyResources(this.flowLayoutPanel1, "flowLayoutPanel1");
     this.flowLayoutPanel1.Controls.Add(this.label1);
     this.flowLayoutPanel1.Controls.Add(this.groupBox1);
     this.flowLayoutPanel1.Name = "flowLayoutPanel1";
     //
     // FormFind
     //
     this.AcceptButton = this.btnOK;
     resources.ApplyResources(this, "$this");
     this.BackColor    = System.Drawing.SystemColors.Control;
     this.CancelButton = this.btnCancel;
     this.Controls.Add(this.flowLayoutPanel1);
     this.Controls.Add(this.chkMatchCase);
     this.Controls.Add(this.lblPercent);
     this.Controls.Add(this.lblFinding);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtFind);
     this.Controls.Add(this.hexFind);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox     = false;
     this.MinimizeBox     = false;
     this.Name            = "FormFind";
     this.ShowIcon        = false;
     this.ShowInTaskbar   = false;
     this.Activated      += new System.EventHandler(this.FormFind_Activated);
     this.flowLayoutPanel1.ResumeLayout(false);
     this.flowLayoutPanel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 public StringKeyInterpreter(HexBox hexBox)
     : base(hexBox) => _hexBox._byteCharacterPos = 0;
Ejemplo n.º 20
0
 /// <summary>
 /// Required method for Designer support - do not modify
 /// the contents of this method with the code editor.
 /// </summary>
 private void InitializeComponent()
 {
     this.hexBox = new Be.Windows.Forms.HexBox();
     this.txtString = new System.Windows.Forms.TextBox();
     this.rbString = new System.Windows.Forms.RadioButton();
     this.rbHex = new System.Windows.Forms.RadioButton();
     this.label1 = new System.Windows.Forms.Label();
     this.btnOK = new System.Windows.Forms.Button();
     this.btnCancel = new System.Windows.Forms.Button();
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.SuspendLayout();
     //
     // hexBox
     //
     this.hexBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                 | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.hexBox.Enabled = false;
     this.hexBox.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.hexBox.LineInfoForeColor = System.Drawing.Color.Empty;
     this.hexBox.Location = new System.Drawing.Point(16, 104);
     this.hexBox.Name = "hexBox";
     this.hexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
     this.hexBox.Size = new System.Drawing.Size(304, 88);
     this.hexBox.TabIndex = 3;
     //
     // txtString
     //
     this.txtString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                 | System.Windows.Forms.AnchorStyles.Right)));
     this.txtString.Location = new System.Drawing.Point(16, 56);
     this.txtString.Name = "txtString";
     this.txtString.Size = new System.Drawing.Size(304, 20);
     this.txtString.TabIndex = 1;
     //
     // rbString
     //
     this.rbString.Checked = true;
     this.rbString.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.rbString.Location = new System.Drawing.Point(16, 40);
     this.rbString.Name = "rbString";
     this.rbString.Size = new System.Drawing.Size(104, 16);
     this.rbString.TabIndex = 0;
     this.rbString.TabStop = true;
     this.rbString.Text = "String";
     //
     // rbHex
     //
     this.rbHex.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.rbHex.Location = new System.Drawing.Point(16, 88);
     this.rbHex.Name = "rbHex";
     this.rbHex.Size = new System.Drawing.Size(104, 16);
     this.rbHex.TabIndex = 2;
     this.rbHex.Text = "Hex";
     //
     // label1
     //
     this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
     this.label1.ForeColor = System.Drawing.Color.Blue;
     this.label1.Location = new System.Drawing.Point(16, 16);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(40, 16);
     this.label1.TabIndex = 6;
     this.label1.Text = "Find";
     //
     // btnOK
     //
     this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnOK.Location = new System.Drawing.Point(245, 211);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(75, 23);
     this.btnOK.TabIndex = 4;
     this.btnOK.Text = "Find next";
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // btnCancel
     //
     this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
     this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
     this.btnCancel.Location = new System.Drawing.Point(164, 211);
     this.btnCancel.Name = "btnCancel";
     this.btnCancel.Size = new System.Drawing.Size(75, 23);
     this.btnCancel.TabIndex = 5;
     this.btnCancel.Text = "Cancel";
     this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
     //
     // groupBox1
     //
     this.groupBox1.Location = new System.Drawing.Point(48, 16);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Size = new System.Drawing.Size(272, 8);
     this.groupBox1.TabIndex = 9;
     this.groupBox1.TabStop = false;
     //
     // FormFind
     //
     this.AcceptButton = this.btnOK;
     this.Appearance.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     this.Appearance.Options.UseFont = true;
     this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
     this.CancelButton = this.btnCancel;
     this.ClientSize = new System.Drawing.Size(336, 246);
     this.Controls.Add(this.groupBox1);
     this.Controls.Add(this.btnCancel);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.rbHex);
     this.Controls.Add(this.rbString);
     this.Controls.Add(this.txtString);
     this.Controls.Add(this.hexBox);
     this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
     this.MaximizeBox = false;
     this.MinimizeBox = false;
     this.Name = "FormFind";
     this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
     this.Text = "Find";
     this.Activated += new System.EventHandler(this.FormFind_Activated);
     this.ResumeLayout(false);
     this.PerformLayout();
 }
Ejemplo n.º 21
0
 public GotoDialog(HexBox owner)
 {
     InitializeComponent();
     _hexEditor = owner;
 }
Ejemplo n.º 22
0
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
            this.hexBox = new Be.Windows.Forms.HexBox();
            this.txtString = new System.Windows.Forms.TextBox();
            this.rbString = new System.Windows.Forms.RadioButton();
            this.rbHex = new System.Windows.Forms.RadioButton();
            this.btnOK = new System.Windows.Forms.Button();
            this.btnCancel = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // hexBox
            // 
            this.hexBox.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            // 
            // 
            // 
            this.hexBox.BuiltInContextMenu.CopyMenuItemImage = global::Reflexil.Properties.Resources.CopyHS;
            this.hexBox.BuiltInContextMenu.CutMenuItemImage = global::Reflexil.Properties.Resources.CutHS;
            this.hexBox.BuiltInContextMenu.PasteMenuItemImage = global::Reflexil.Properties.Resources.PasteHS;
            this.hexBox.Enabled = false;
            this.hexBox.Font = new System.Drawing.Font("Courier New", 9F);
            this.hexBox.HexCasing = Be.Windows.Forms.HexCasing.Lower;
            this.hexBox.LineInfoForeColor = System.Drawing.Color.Empty;
            this.hexBox.Location = new System.Drawing.Point(12, 76);
            this.hexBox.Name = "hexBox";
            this.hexBox.ShadowSelectionColor = System.Drawing.Color.FromArgb(((int)(((byte)(100)))), ((int)(((byte)(60)))), ((int)(((byte)(188)))), ((int)(((byte)(255)))));
            this.hexBox.Size = new System.Drawing.Size(304, 126);
            this.hexBox.TabIndex = 3;
            // 
            // txtString
            // 
            this.txtString.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtString.Location = new System.Drawing.Point(12, 28);
            this.txtString.Name = "txtString";
            this.txtString.Size = new System.Drawing.Size(304, 21);
            this.txtString.TabIndex = 1;
            // 
            // rbString
            // 
            this.rbString.Checked = true;
            this.rbString.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.rbString.Location = new System.Drawing.Point(12, 12);
            this.rbString.Name = "rbString";
            this.rbString.Size = new System.Drawing.Size(104, 16);
            this.rbString.TabIndex = 0;
            this.rbString.TabStop = true;
            this.rbString.Text = "Text";
            // 
            // rbHex
            // 
            this.rbHex.ImeMode = System.Windows.Forms.ImeMode.NoControl;
            this.rbHex.Location = new System.Drawing.Point(12, 60);
            this.rbHex.Name = "rbHex";
            this.rbHex.Size = new System.Drawing.Size(104, 16);
            this.rbHex.TabIndex = 2;
            this.rbHex.Text = "Hex";
            // 
            // btnOK
            // 
            this.btnOK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnOK.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnOK.Location = new System.Drawing.Point(160, 211);
            this.btnOK.Name = "btnOK";
            this.btnOK.Size = new System.Drawing.Size(75, 23);
            this.btnOK.TabIndex = 4;
            this.btnOK.Text = "Find next";
            this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
            // 
            // btnCancel
            // 
            this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
            this.btnCancel.Location = new System.Drawing.Point(241, 211);
            this.btnCancel.Name = "btnCancel";
            this.btnCancel.Size = new System.Drawing.Size(75, 23);
            this.btnCancel.TabIndex = 5;
            this.btnCancel.Text = "Cancel";
            this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
            // 
            // HexFindForm
            // 
            this.AcceptButton = this.btnOK;
            this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
            this.BackColor = System.Drawing.SystemColors.Control;
            this.CancelButton = this.btnCancel;
            this.ClientSize = new System.Drawing.Size(336, 246);
            this.Controls.Add(this.btnCancel);
            this.Controls.Add(this.btnOK);
            this.Controls.Add(this.rbHex);
            this.Controls.Add(this.rbString);
            this.Controls.Add(this.txtString);
            this.Controls.Add(this.hexBox);
            this.Font = new System.Drawing.Font("Tahoma", 8.25F);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
            this.MaximizeBox = false;
            this.MinimizeBox = false;
            this.Name = "HexFindForm";
            this.ShowInTaskbar = false;
            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
            this.Text = "Find";
            this.Activated += new System.EventHandler(this.FormFind_Activated);
            this.ResumeLayout(false);
            this.PerformLayout();

		}
Ejemplo n.º 23
0
 /// <summary>
 /// Initializes a new instance of BuildInContextMenu class.
 /// </summary>
 /// <param name="hexBox">the HexBox control</param>
 internal BuiltInContextMenu(HexBox hexBox)
 {
     _hexBox = hexBox;
     _hexBox.ByteProviderChanged += new EventHandler(HexBox_ByteProviderChanged);
 }
 private void InitHexBox(HexBox hexBox)
 {
     hexBox.BuiltInContextMenu.CopyMenuItemImage = null;
     hexBox.BuiltInContextMenu.CopyMenuItemText = "Copy";
     hexBox.BuiltInContextMenu.CutMenuItemImage = null;
     hexBox.BuiltInContextMenu.CutMenuItemText = "Cut";
     hexBox.BuiltInContextMenu.PasteMenuItemImage = null;
     hexBox.BuiltInContextMenu.PasteMenuItemText = "Paste";
     hexBox.BuiltInContextMenu.SelectAllMenuItemText = "Select All";
     hexBox.HexCasing = Be.Windows.Forms.HexCasing.Lower;
     hexBox.InfoForeColor = Color.Gray;
     hexBox.LineInfoVisible = true;
     hexBox.Name = "hexBox";
     hexBox.SelectionBackColor = Color.Gray;
     hexBox.SelectionForeColor = Color.White;
     hexBox.ShadowSelectionColor = Color.Gray;
     hexBox.StringViewVisible = true;
     hexBox.UseFixedBytesPerLine = true;
     hexBox.VScrollBarVisible = true;
     hexBox.ColumnInfoVisible = true;
     hexBox.ReadOnly = true;
     hexBox.CurrentLineChanged += new System.EventHandler(this.Position_Changed);
     hexBox.CurrentPositionInLineChanged += new System.EventHandler(this.Position_Changed);
     _hexBox = hexBox;
 }