@@ -28,7 +28,6 @@ public class ShortcutDialog : SmartForm
28
28
private System . Windows . Forms . ColumnHeader idHeader ;
29
29
private System . Windows . Forms . ColumnHeader keyHeader ;
30
30
private System . Windows . Forms . TextBox filterTextBox ;
31
- private System . Windows . Forms . CheckBox viewCustom ;
32
31
private System . Windows . Forms . Button clearButton ;
33
32
private System . Windows . Forms . Button closeButton ;
34
33
private System . Windows . Forms . Button openButton ;
@@ -67,7 +66,6 @@ private void InitializeComponent()
67
66
this . searchLabel = new System . Windows . Forms . Label ( ) ;
68
67
this . clearButton = new System . Windows . Forms . Button ( ) ;
69
68
this . filterTextBox = new System . Windows . Forms . TextBox ( ) ;
70
- this . viewCustom = new System . Windows . Forms . CheckBox ( ) ;
71
69
this . openButton = new System . Windows . Forms . Button ( ) ;
72
70
this . saveButton = new System . Windows . Forms . Button ( ) ;
73
71
( ( System . ComponentModel . ISupportInitialize ) ( this . pictureBox ) ) . BeginInit ( ) ;
@@ -89,10 +87,10 @@ private void InitializeComponent()
89
87
this . listView . Columns . AddRange ( new System . Windows . Forms . ColumnHeader [ ] { this . idHeader , this . keyHeader } ) ;
90
88
this . listView . GridLines = true ;
91
89
this . listView . FullRowSelect = true ;
92
- this . listView . Location = new System . Drawing . Point ( 12 , 87 ) ;
90
+ this . listView . Location = new System . Drawing . Point ( 12 , 70 ) ;
93
91
this . listView . MultiSelect = false ;
94
92
this . listView . Name = "listView" ;
95
- this . listView . Size = new System . Drawing . Size ( 562 , 287 ) ;
93
+ this . listView . Size = new System . Drawing . Size ( 562 , 304 ) ;
96
94
this . listView . TabIndex = 4 ;
97
95
this . listView . UseCompatibleStateImageBehavior = false ;
98
96
this . listView . View = System . Windows . Forms . View . Details ;
@@ -158,14 +156,6 @@ private void InitializeComponent()
158
156
this . filterTextBox . ForeColor = System . Drawing . SystemColors . GrayText ;
159
157
this . filterTextBox . TextChanged += new System . EventHandler ( this . FilterTextChanged ) ;
160
158
//
161
- // viewCustom
162
- //
163
- this . viewCustom . AutoSize = true ;
164
- this . viewCustom . CheckAlign = ContentAlignment . MiddleRight ;
165
- this . viewCustom . Anchor = ( ( System . Windows . Forms . AnchorStyles ) ( System . Windows . Forms . AnchorStyles . Top | System . Windows . Forms . AnchorStyles . Right ) ) ;
166
- this . viewCustom . Location = new System . Drawing . Point ( 471 , 67 ) ;
167
- this . viewCustom . CheckedChanged += new System . EventHandler ( this . ViewCustomCheckedChanged ) ;
168
- //
169
159
// openButton
170
160
//
171
161
this . openButton . Location = new System . Drawing . Point ( 369 , 12 ) ;
@@ -203,7 +193,6 @@ private void InitializeComponent()
203
193
this . Controls . Add ( this . infoLabel ) ;
204
194
this . Controls . Add ( this . pictureBox ) ;
205
195
this . Controls . Add ( this . closeButton ) ;
206
- this . Controls . Add ( this . viewCustom ) ;
207
196
this . Controls . Add ( this . listView ) ;
208
197
this . Controls . Add ( this . searchLabel ) ;
209
198
this . FormClosing += new FormClosingEventHandler ( this . DialogClosing ) ;
@@ -258,7 +247,6 @@ private void ApplyLocalizedTexts()
258
247
this . keyHeader . Text = TextHelper . GetString ( "Label.Shortcut" ) ;
259
248
this . infoLabel . Text = TextHelper . GetString ( "Info.ShortcutEditInfo" ) ;
260
249
this . closeButton . Text = TextHelper . GetString ( "Label.Close" ) ;
261
- this . viewCustom . Text = TextHelper . GetString ( "Label.ViewCustom" ) ;
262
250
this . openButton . Text = TextHelper . GetString ( "Label.Open" ) ;
263
251
this . saveButton . Text = TextHelper . GetString ( "Label.SaveAs" ) ;
264
252
this . searchLabel . Text = TextHelper . GetString ( "Label.Search" ) . Replace ( "&" , "" ) + ":" ;
@@ -444,23 +432,6 @@ private static void ResetConflicts(ShortcutListItem item)
444
432
UpdateItemHighlightFont ( item ) ;
445
433
}
446
434
}
447
-
448
- /// <summary>
449
- /// Filter the list view for custom items
450
- /// </summary>
451
- private void ViewCustomCheckedChanged ( Object sender , EventArgs e )
452
- {
453
- if ( this . filterTextBox . Text . StartsWith ( ViewCustomKey ) )
454
- {
455
- if ( ! this . viewCustom . Checked )
456
- this . filterTextBox . Text = this . filterTextBox . Text . Substring ( ViewCustomKey . Length ) ;
457
- }
458
- else
459
- {
460
- if ( this . viewCustom . Checked )
461
- this . filterTextBox . Text = ViewCustomKey + this . filterTextBox . Text ;
462
- }
463
- }
464
435
465
436
/// <summary>
466
437
/// Gets a list of all conflicting entries. Returns null if the length is 0 or 1.
@@ -526,7 +497,6 @@ private void RemoveShortcutClick(Object sender, EventArgs e)
526
497
/// </summary>
527
498
private void ClearFilterClick ( Object sender , EventArgs e )
528
499
{
529
- this . viewCustom . Checked = false ;
530
500
this . filterTextBox . Text = "" ;
531
501
}
532
502
0 commit comments