Inheritance: Control
Beispiel #1
0
 public StringKeyInterpreter(HexBox hexBox)
     : base(hexBox)
 {
     _hexBox._byteCharacterPos = 0;
 }
Beispiel #2
0
 public EmptyKeyInterpreter(HexBox hexBox)
 {
     _hexBox = hexBox;
 }
Beispiel #3
0
 public KeyInterpreter(HexBox hexBox)
 {
     _hexBox = hexBox;
 }
Beispiel #4
0
        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            components = new Container();
            ComponentResourceManager resources = new ComponentResourceManager(typeof(FormFind));

            txtFind          = new TextBox();
            rbString         = new RadioButton();
            rbHex            = new RadioButton();
            label1           = new Label();
            btnOK            = new Button();
            btnCancel        = new Button();
            groupBox1        = new GroupBox();
            lblPercent       = new Label();
            lblFinding       = new Label();
            chkMatchCase     = new CheckBox();
            timerPercent     = new Timer(components);
            timer            = new Timer(components);
            hexFind          = new HexBox();
            flowLayoutPanel1 = new FlowLayoutPanel();
            flowLayoutPanel1.SuspendLayout();
            SuspendLayout();
            //
            // txtFind
            //
            resources.ApplyResources(txtFind, "txtFind");
            txtFind.Name         = "txtFind";
            txtFind.TextChanged += txtString_TextChanged;
            //
            // rbString
            //
            resources.ApplyResources(rbString, "rbString");
            rbString.Checked = true;
            rbString.Name    = "rbString";
            rbString.TabStop = true;
            //
            // rbHex
            //
            resources.ApplyResources(rbHex, "rbHex");
            rbHex.Name = "rbHex";
            //
            // label1
            //
            resources.ApplyResources(label1, "label1");
            label1.ForeColor = Drawing.Color.Blue;
            label1.Name      = "label1";
            //
            // btnOK
            //
            resources.ApplyResources(btnOK, "btnOK");
            btnOK.Name   = "btnOK";
            btnOK.Click += btnOK_Click;
            //
            // btnCancel
            //
            resources.ApplyResources(btnCancel, "btnCancel");
            btnCancel.DialogResult = DialogResult.Cancel;
            btnCancel.Name         = "btnCancel";
            btnCancel.Click       += btnCancel_Click;
            //
            // groupBox1
            //
            resources.ApplyResources(groupBox1, "groupBox1");
            groupBox1.Name    = "groupBox1";
            groupBox1.TabStop = false;
            //
            // lblPercent
            //
            resources.ApplyResources(lblPercent, "lblPercent");
            lblPercent.Name = "lblPercent";
            //
            // lblFinding
            //
            resources.ApplyResources(lblFinding, "lblFinding");
            lblFinding.ForeColor = Drawing.Color.Blue;
            lblFinding.Name      = "lblFinding";
            //
            // chkMatchCase
            //
            resources.ApplyResources(chkMatchCase, "chkMatchCase");
            chkMatchCase.Name = "chkMatchCase";
            chkMatchCase.UseVisualStyleBackColor = true;
            //
            // timerPercent
            //
            timerPercent.Tick += timerPercent_Tick;
            //
            // timer
            //
            timer.Interval = 50;
            timer.Tick    += timer_Tick;
            //
            // hexFind
            //
            resources.ApplyResources(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");
            hexFind.InfoForeColor        = Drawing.Color.Empty;
            hexFind.Name                 = "hexFind";
            hexFind.ShadowSelectionColor = Drawing.Color.FromArgb(100, 60, 188, 255);
            //
            // flowLayoutPanel1
            //
            resources.ApplyResources(flowLayoutPanel1, "flowLayoutPanel1");
            flowLayoutPanel1.Controls.Add(label1);
            flowLayoutPanel1.Controls.Add(groupBox1);
            flowLayoutPanel1.Name = "flowLayoutPanel1";
            //
            // FormFind
            //
            AcceptButton = btnOK;
            resources.ApplyResources(this, "$this");
            BackColor    = Drawing.SystemColors.Control;
            CancelButton = btnCancel;
            Controls.Add(flowLayoutPanel1);
            Controls.Add(chkMatchCase);
            Controls.Add(lblPercent);
            Controls.Add(lblFinding);
            Controls.Add(btnCancel);
            Controls.Add(btnOK);
            Controls.Add(rbHex);
            Controls.Add(rbString);
            Controls.Add(txtFind);
            Controls.Add(hexFind);
            FormBorderStyle = FormBorderStyle.FixedDialog;
            MaximizeBox     = false;
            MinimizeBox     = false;
            Name            = "FormFind";
            ShowIcon        = false;
            ShowInTaskbar   = false;
            Activated      += FormFind_Activated;
            flowLayoutPanel1.ResumeLayout(false);
            flowLayoutPanel1.PerformLayout();
            ResumeLayout(false);
            PerformLayout();
        }