Ignore:
Timestamp:
Feb 14, 2019, 5:29:40 PM (5 years ago)
Author:
chronos
Message:
  • Added: Registry extension methods.
  • Added: Search history in Find dialog.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Common/FormFind.Designer.cs

    r1 r2  
    3131            this.buttonFindNext = new System.Windows.Forms.Button();
    3232            this.buttonCancel = new System.Windows.Forms.Button();
    33             this.textBoxWhat = new System.Windows.Forms.TextBox();
    3433            this.label1 = new System.Windows.Forms.Label();
    3534            this.checkBoxMatchWholeWordOnly = new System.Windows.Forms.CheckBox();
    3635            this.checkBoxMatchCase = new System.Windows.Forms.CheckBox();
    3736            this.buttonFindPrevious = new System.Windows.Forms.Button();
     37            this.comboBoxWhat = new System.Windows.Forms.ComboBox();
    3838            this.SuspendLayout();
    3939            //
     
    4141            //
    4242            this.buttonFindNext.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    43             this.buttonFindNext.Location = new System.Drawing.Point(304, 12);
     43            this.buttonFindNext.Location = new System.Drawing.Point(405, 15);
     44            this.buttonFindNext.Margin = new System.Windows.Forms.Padding(4);
    4445            this.buttonFindNext.Name = "buttonFindNext";
    45             this.buttonFindNext.Size = new System.Drawing.Size(88, 23);
     46            this.buttonFindNext.Size = new System.Drawing.Size(117, 28);
    4647            this.buttonFindNext.TabIndex = 4;
    4748            this.buttonFindNext.Text = "Find next";
     
    5354            this.buttonCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    5455            this.buttonCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
    55             this.buttonCancel.Location = new System.Drawing.Point(304, 70);
     56            this.buttonCancel.Location = new System.Drawing.Point(405, 86);
     57            this.buttonCancel.Margin = new System.Windows.Forms.Padding(4);
    5658            this.buttonCancel.Name = "buttonCancel";
    57             this.buttonCancel.Size = new System.Drawing.Size(87, 23);
     59            this.buttonCancel.Size = new System.Drawing.Size(116, 28);
    5860            this.buttonCancel.TabIndex = 6;
    5961            this.buttonCancel.Text = "Cancel";
     
    6163            this.buttonCancel.Click += new System.EventHandler(this.buttonCancel_Click);
    6264            //
    63             // textBoxWhat
    64             //
    65             this.textBoxWhat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
    66             | System.Windows.Forms.AnchorStyles.Right)));
    67             this.textBoxWhat.Location = new System.Drawing.Point(74, 14);
    68             this.textBoxWhat.Name = "textBoxWhat";
    69             this.textBoxWhat.Size = new System.Drawing.Size(224, 20);
    70             this.textBoxWhat.TabIndex = 1;
    71             this.textBoxWhat.TextChanged += new System.EventHandler(this.textBoxWhat_TextChanged);
    72             this.textBoxWhat.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxWhat_KeyPress);
    73             //
    7465            // label1
    7566            //
    7667            this.label1.AutoSize = true;
    77             this.label1.Location = new System.Drawing.Point(12, 17);
     68            this.label1.Location = new System.Drawing.Point(16, 21);
     69            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
    7870            this.label1.Name = "label1";
    79             this.label1.Size = new System.Drawing.Size(56, 13);
     71            this.label1.Size = new System.Drawing.Size(72, 17);
    8072            this.label1.TabIndex = 0;
    8173            this.label1.Text = "Find what:";
     
    8476            //
    8577            this.checkBoxMatchWholeWordOnly.AutoSize = true;
    86             this.checkBoxMatchWholeWordOnly.Location = new System.Drawing.Point(15, 47);
     78            this.checkBoxMatchWholeWordOnly.Location = new System.Drawing.Point(20, 58);
     79            this.checkBoxMatchWholeWordOnly.Margin = new System.Windows.Forms.Padding(4);
    8780            this.checkBoxMatchWholeWordOnly.Name = "checkBoxMatchWholeWordOnly";
    88             this.checkBoxMatchWholeWordOnly.Size = new System.Drawing.Size(135, 17);
     81            this.checkBoxMatchWholeWordOnly.Size = new System.Drawing.Size(172, 21);
    8982            this.checkBoxMatchWholeWordOnly.TabIndex = 2;
    9083            this.checkBoxMatchWholeWordOnly.Text = "Match whole word only";
     
    9487            //
    9588            this.checkBoxMatchCase.AutoSize = true;
    96             this.checkBoxMatchCase.Location = new System.Drawing.Point(15, 70);
     89            this.checkBoxMatchCase.Location = new System.Drawing.Point(20, 86);
     90            this.checkBoxMatchCase.Margin = new System.Windows.Forms.Padding(4);
    9791            this.checkBoxMatchCase.Name = "checkBoxMatchCase";
    98             this.checkBoxMatchCase.Size = new System.Drawing.Size(82, 17);
     92            this.checkBoxMatchCase.Size = new System.Drawing.Size(102, 21);
    9993            this.checkBoxMatchCase.TabIndex = 3;
    10094            this.checkBoxMatchCase.Text = "Match case";
     
    10498            //
    10599            this.buttonFindPrevious.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
    106             this.buttonFindPrevious.Location = new System.Drawing.Point(304, 41);
     100            this.buttonFindPrevious.Location = new System.Drawing.Point(405, 50);
     101            this.buttonFindPrevious.Margin = new System.Windows.Forms.Padding(4);
    107102            this.buttonFindPrevious.Name = "buttonFindPrevious";
    108             this.buttonFindPrevious.Size = new System.Drawing.Size(87, 23);
     103            this.buttonFindPrevious.Size = new System.Drawing.Size(116, 28);
    109104            this.buttonFindPrevious.TabIndex = 5;
    110105            this.buttonFindPrevious.Text = "Find previous";
     
    112107            this.buttonFindPrevious.Click += new System.EventHandler(this.buttonFindPrevious_Click);
    113108            //
     109            // comboBoxWhat
     110            //
     111            this.comboBoxWhat.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
     112            | System.Windows.Forms.AnchorStyles.Right)));
     113            this.comboBoxWhat.FormattingEnabled = true;
     114            this.comboBoxWhat.Location = new System.Drawing.Point(95, 18);
     115            this.comboBoxWhat.Name = "comboBoxWhat";
     116            this.comboBoxWhat.Size = new System.Drawing.Size(297, 24);
     117            this.comboBoxWhat.TabIndex = 7;
     118            this.comboBoxWhat.TextChanged += new System.EventHandler(this.textBoxWhat_TextChanged);
     119            this.comboBoxWhat.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.textBoxWhat_KeyPress);
     120            //
    114121            // FormFind
    115122            //
    116             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
     123            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
    117124            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    118             this.ClientSize = new System.Drawing.Size(403, 102);
     125            this.ClientSize = new System.Drawing.Size(537, 126);
     126            this.Controls.Add(this.comboBoxWhat);
    119127            this.Controls.Add(this.buttonFindPrevious);
    120128            this.Controls.Add(this.checkBoxMatchCase);
    121129            this.Controls.Add(this.checkBoxMatchWholeWordOnly);
    122130            this.Controls.Add(this.label1);
    123             this.Controls.Add(this.textBoxWhat);
    124131            this.Controls.Add(this.buttonCancel);
    125132            this.Controls.Add(this.buttonFindNext);
     133            this.Margin = new System.Windows.Forms.Padding(4);
    126134            this.MaximizeBox = false;
    127135            this.MinimizeBox = false;
    128             this.MinimumSize = new System.Drawing.Size(300, 140);
     136            this.MinimumSize = new System.Drawing.Size(394, 162);
    129137            this.Name = "FormFind";
    130138            this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
     
    142150        private System.Windows.Forms.Button buttonFindNext;
    143151        private System.Windows.Forms.Button buttonCancel;
    144         private System.Windows.Forms.TextBox textBoxWhat;
    145152        private System.Windows.Forms.Label label1;
    146153        private System.Windows.Forms.CheckBox checkBoxMatchWholeWordOnly;
    147154        private System.Windows.Forms.CheckBox checkBoxMatchCase;
    148155        private System.Windows.Forms.Button buttonFindPrevious;
     156        private System.Windows.Forms.ComboBox comboBoxWhat;
    149157    }
    150158}
Note: See TracChangeset for help on using the changeset viewer.