Remove useless class
Brian [2016-08-02 05:44:29]
diff --git a/PokemonGo/RocketAPI/Window/CueTextBox.cs b/PokemonGo/RocketAPI/Window/CueTextBox.cs
deleted file mode 100644
index 546e909..0000000
--- a/PokemonGo/RocketAPI/Window/CueTextBox.cs
+++ /dev/null
@@ -1,35 +0,0 @@
-using System;
-using System.ComponentModel;
-using System.Runtime.InteropServices;
-using System.Windows.Forms;
-
-namespace PokemonGo.RocketAPI.Window
-{
- class CueTextBox : TextBox
- {
- [Localizable(true)]
- public string Cue
- {
- get { return mCue; }
- set { mCue = value; updateCue(); }
- }
-
- private void updateCue()
- {
- if (this.IsHandleCreated && mCue != null)
- {
- SendMessage(this.Handle, 0x1501, (IntPtr)1, mCue);
- }
- }
- protected override void OnHandleCreated(EventArgs e)
- {
- base.OnHandleCreated(e);
- updateCue();
- }
- private string mCue;
-
- // PInvoke
- [DllImport("user32.dll", CharSet = CharSet.Unicode)]
- private static extern IntPtr SendMessage(IntPtr hWnd, int msg, IntPtr wp, string lp);
- }
-}
diff --git a/PokemonGo/RocketAPI/Window/PokemonGo.RocketAPI.Window.csproj b/PokemonGo/RocketAPI/Window/PokemonGo.RocketAPI.Window.csproj
index 2d856d8..77e2a02 100644
--- a/PokemonGo/RocketAPI/Window/PokemonGo.RocketAPI.Window.csproj
+++ b/PokemonGo/RocketAPI/Window/PokemonGo.RocketAPI.Window.csproj
@@ -74,9 +74,6 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
- <Compile Include="CueTextBox.cs">
- <SubType>Component</SubType>
- </Compile>
<Compile Include="LocationManager.cs" />
<Compile Include="MainForm.cs">
<SubType>Form</SubType>
diff --git a/PokemonGo/RocketAPI/Window/SettingsForm.Designer.cs b/PokemonGo/RocketAPI/Window/SettingsForm.Designer.cs
index 3232162..9db6442 100644
--- a/PokemonGo/RocketAPI/Window/SettingsForm.Designer.cs
+++ b/PokemonGo/RocketAPI/Window/SettingsForm.Designer.cs
@@ -480,7 +480,6 @@
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.TrackBar trackBar;
- private CueTextBox textBoxAddress;
private System.Windows.Forms.TextBox TravelSpeedBox;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label TravelSpeedText;
You may download the files in Public Git.