Skip to content

Commit 49c09f3

Browse files
committed
Targets the .Net 2.0 Framework.
1 parent 1dc689d commit 49c09f3

File tree

14 files changed

+15
-23
lines changed

14 files changed

+15
-23
lines changed

Controls/GroupItems.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using System.Windows.Forms;
65
using QuickLaunch.Controls;

Controls/ToolStripGroupItem.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using System.Windows.Forms;
65
using System.Drawing;

Controls/ToolStripGroupSeparator.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using System.Windows.Forms;
65
using System.Drawing;

Controls/ToolStripSearchTextBox.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using System.Windows.Forms;
65
using System.Drawing;
@@ -87,8 +86,8 @@ public ToolStripRenderer Renderer
8786

8887
private void ApplyWatermark()
8988
{
90-
TextBox.SetWatermark(_watermarkText);
91-
TextBox.SetRightMargin(23);
89+
TextBoxHelper.SetWatermark(TextBox, _watermarkText);
90+
TextBoxHelper.SetRightMargin(TextBox, 23);
9291
}
9392

9493
protected override bool ProcessCmdKey(ref Message m, Keys keyData)
@@ -155,7 +154,7 @@ void _searchIcon_Click(object sender, EventArgs e)
155154
}
156155
}
157156

158-
internal static class TextBoxWatermarkExtensionMethod
157+
internal static class TextBoxHelper
159158
{
160159
private const uint ECM_FIRST = 0x1500;
161160
private const uint EM_SETCUEBANNER = ECM_FIRST + 1;
@@ -173,7 +172,7 @@ internal static class TextBoxWatermarkExtensionMethod
173172
/// </summary>
174173
/// <param name="textBox"></param>
175174
/// <param name="watermarkText"></param>
176-
public static void SetWatermark(this TextBox textBox, string watermarkText)
175+
public static void SetWatermark(TextBox textBox, string watermarkText)
177176
{
178177
SendMessage(textBox.Handle, EM_SETCUEBANNER, 0, watermarkText);
179178
}
@@ -183,7 +182,7 @@ public static void SetWatermark(this TextBox textBox, string watermarkText)
183182
/// </summary>
184183
/// <param name="textBox"></param>
185184
/// <param name="margin"></param>
186-
public static void SetRightMargin(this TextBox textBox, int margin)
185+
public static void SetRightMargin(TextBox textBox, int margin)
187186
{
188187
SendMessage(textBox.Handle, EM_SETMARGIN, EC_RIGHTMARGIN, (IntPtr)(margin << 16));
189188
}

Documents/DocumentProvider.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using QuickLaunch.Managers;
65
using PluginCore;

Helpers/ResourceHelper.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using PluginCore.Localization;
65
using PluginCore;

Localization/Attributes.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
using System;
22
using System.ComponentModel;
33
using System.Collections.Generic;
4-
using System.Linq;
54
using System.Text;
65
using QuickLaunch.Helpers;
76

Managers/QuickLaunchManager.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using System.Windows.Forms;
65
using QuickLaunch.Controls;

Managers/QuickLaunchProvider.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using System.Windows.Forms;
65
using QuickLaunch.Controls;

Menu/MenuProvider.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
using System;
22
using System.Collections.Generic;
3-
using System.Linq;
43
using System.Text;
54
using QuickLaunch.Managers;
65
using System.Windows.Forms;

0 commit comments

Comments
 (0)