├── IHExt ├── App.config ├── Properties │ ├── Settings.settings │ ├── Settings.Designer.cs │ ├── AssemblyInfo.cs │ ├── Resources.Designer.cs │ ├── app.manifest │ └── Resources.resx ├── App.xaml ├── IHExt.csproj ├── MainWindow.xaml.cs ├── MainWindow.xaml └── App.xaml.cs ├── ReadMe.txt ├── .gitattributes ├── IHExt.sln └── .gitignore /IHExt/App.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /IHExt/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /ReadMe.txt: -------------------------------------------------------------------------------- 1 | IHExt is a program that is launched along side MGSV to act as an UI overlay when in Borderless Windowed mode in conjunction with the Infinite Heaven mod. 2 | 3 | I is currently installed alongside IH. 4 | 5 | It is however being superseded by IHHook (also bundled with IH). 6 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /IHExt/App.xaml: -------------------------------------------------------------------------------- 1 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /IHExt.sln: -------------------------------------------------------------------------------- 1 | 2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio 14 4 | VisualStudioVersion = 14.0.23107.0 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IHExt", "IHExt\IHExt.csproj", "{FB2424C9-F46F-435A-B6AE-02B1AA32481C}" 7 | EndProject 8 | Global 9 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 10 | Debug|Any CPU = Debug|Any CPU 11 | Release|Any CPU = Release|Any CPU 12 | EndGlobalSection 13 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 14 | {FB2424C9-F46F-435A-B6AE-02B1AA32481C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 15 | {FB2424C9-F46F-435A-B6AE-02B1AA32481C}.Debug|Any CPU.Build.0 = Debug|Any CPU 16 | {FB2424C9-F46F-435A-B6AE-02B1AA32481C}.Release|Any CPU.ActiveCfg = Release|Any CPU 17 | {FB2424C9-F46F-435A-B6AE-02B1AA32481C}.Release|Any CPU.Build.0 = Release|Any CPU 18 | EndGlobalSection 19 | GlobalSection(SolutionProperties) = preSolution 20 | HideSolutionNode = FALSE 21 | EndGlobalSection 22 | EndGlobal 23 | -------------------------------------------------------------------------------- /IHExt/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace IHExt.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /IHExt/Properties/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Reflection; 2 | using System.Resources; 3 | using System.Runtime.CompilerServices; 4 | using System.Runtime.InteropServices; 5 | using System.Windows; 6 | 7 | // General Information about an assembly is controlled through the following 8 | // set of attributes. Change these attribute values to modify the information 9 | // associated with an assembly. 10 | [assembly: AssemblyTitle("IHExt")] 11 | [assembly: AssemblyDescription("")] 12 | [assembly: AssemblyConfiguration("")] 13 | [assembly: AssemblyCompany("")] 14 | [assembly: AssemblyProduct("IHExt")] 15 | [assembly: AssemblyCopyright("Copyright © 2017")] 16 | [assembly: AssemblyTrademark("")] 17 | [assembly: AssemblyCulture("")] 18 | 19 | // Setting ComVisible to false makes the types in this assembly not visible 20 | // to COM components. If you need to access a type in this assembly from 21 | // COM, set the ComVisible attribute to true on that type. 22 | [assembly: ComVisible(false)] 23 | 24 | //In order to begin building localizable applications, set 25 | //CultureYouAreCodingWith in your .csproj file 26 | //inside a . For example, if you are using US english 27 | //in your source files, set the to en-US. Then uncomment 28 | //the NeutralResourceLanguage attribute below. Update the "en-US" in 29 | //the line below to match the UICulture setting in the project file. 30 | 31 | //[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)] 32 | 33 | 34 | [assembly: ThemeInfo( 35 | ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located 36 | //(used if a resource is not found in the page, 37 | // or application resource dictionaries) 38 | ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located 39 | //(used if a resource is not found in the page, 40 | // app, or any theme specific resource dictionaries) 41 | )] 42 | 43 | 44 | // Version information for an assembly consists of the following four values: 45 | // 46 | // Major Version 47 | // Minor Version 48 | // Build Number 49 | // Revision 50 | // 51 | // You can specify all the values or you can default the Build and Revision Numbers 52 | // by using the '*' as shown below: 53 | // [assembly: AssemblyVersion("1.0.*")] 54 | [assembly: AssemblyVersion("0.1.6.0")] 55 | [assembly: AssemblyFileVersion("0.1.6.0")] 56 | -------------------------------------------------------------------------------- /IHExt/Properties/Resources.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace IHExt.Properties { 12 | 13 | 14 | /// 15 | /// A strongly-typed resource class, for looking up localized strings, etc. 16 | /// 17 | // This class was auto-generated by the StronglyTypedResourceBuilder 18 | // class via a tool like ResGen or Visual Studio. 19 | // To add or remove a member, edit your .ResX file then rerun ResGen 20 | // with the /str option, or rebuild your VS project. 21 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 22 | [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 23 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 24 | internal class Resources { 25 | 26 | private static global::System.Resources.ResourceManager resourceMan; 27 | 28 | private static global::System.Globalization.CultureInfo resourceCulture; 29 | 30 | [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] 31 | internal Resources() { 32 | } 33 | 34 | /// 35 | /// Returns the cached ResourceManager instance used by this class. 36 | /// 37 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 38 | internal static global::System.Resources.ResourceManager ResourceManager { 39 | get { 40 | if ((resourceMan == null)) { 41 | global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IHExt.Properties.Resources", typeof(Resources).Assembly); 42 | resourceMan = temp; 43 | } 44 | return resourceMan; 45 | } 46 | } 47 | 48 | /// 49 | /// Overrides the current thread's CurrentUICulture property for all 50 | /// resource lookups using this strongly typed resource class. 51 | /// 52 | [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] 53 | internal static global::System.Globalization.CultureInfo Culture { 54 | get { 55 | return resourceCulture; 56 | } 57 | set { 58 | resourceCulture = value; 59 | } 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /IHExt/Properties/app.manifest: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 48 | 55 | 56 | 70 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Ignore Visual Studio temporary files, build results, and 2 | ## files generated by popular Visual Studio add-ons. 3 | 4 | # User-specific files 5 | *.suo 6 | *.user 7 | *.sln.docstates 8 | 9 | # Build results 10 | [Dd]ebug/ 11 | [Dd]ebugPublic/ 12 | [Rr]elease/ 13 | [Rr]eleases/ 14 | x64/ 15 | x86/ 16 | build/ 17 | bld/ 18 | [Bb]in/ 19 | [Oo]bj/ 20 | 21 | # Roslyn cache directories 22 | *.ide/ 23 | 24 | # MSTest test Results 25 | [Tt]est[Rr]esult*/ 26 | [Bb]uild[Ll]og.* 27 | 28 | #NUNIT 29 | *.VisualState.xml 30 | TestResult.xml 31 | 32 | # Build Results of an ATL Project 33 | [Dd]ebugPS/ 34 | [Rr]eleasePS/ 35 | dlldata.c 36 | 37 | *_i.c 38 | *_p.c 39 | *_i.h 40 | *.ilk 41 | *.meta 42 | *.obj 43 | *.pch 44 | *.pdb 45 | *.pgc 46 | *.pgd 47 | *.rsp 48 | *.sbr 49 | *.tlb 50 | *.tli 51 | *.tlh 52 | *.tmp 53 | *.tmp_proj 54 | *.log 55 | *.vspscc 56 | *.vssscc 57 | .builds 58 | *.pidb 59 | *.svclog 60 | *.scc 61 | 62 | # Chutzpah Test files 63 | _Chutzpah* 64 | 65 | # Visual C++ cache files 66 | ipch/ 67 | *.aps 68 | *.ncb 69 | *.opensdf 70 | *.sdf 71 | *.cachefile 72 | 73 | # Visual Studio profiler 74 | *.psess 75 | *.vsp 76 | *.vspx 77 | 78 | # TFS 2012 Local Workspace 79 | $tf/ 80 | 81 | # Guidance Automation Toolkit 82 | *.gpState 83 | 84 | # ReSharper is a .NET coding add-in 85 | _ReSharper*/ 86 | *.[Rr]e[Ss]harper 87 | *.DotSettings.user 88 | 89 | # JustCode is a .NET coding addin-in 90 | .JustCode 91 | 92 | # TeamCity is a build add-in 93 | _TeamCity* 94 | 95 | # DotCover is a Code Coverage Tool 96 | *.dotCover 97 | 98 | # NCrunch 99 | _NCrunch_* 100 | .*crunch*.local.xml 101 | 102 | # MightyMoose 103 | *.mm.* 104 | AutoTest.Net/ 105 | 106 | # Web workbench (sass) 107 | .sass-cache/ 108 | 109 | # Installshield output folder 110 | [Ee]xpress/ 111 | 112 | # DocProject is a documentation generator add-in 113 | DocProject/buildhelp/ 114 | DocProject/Help/*.HxT 115 | DocProject/Help/*.HxC 116 | DocProject/Help/*.hhc 117 | DocProject/Help/*.hhk 118 | DocProject/Help/*.hhp 119 | DocProject/Help/Html2 120 | DocProject/Help/html 121 | 122 | # Click-Once directory 123 | publish/ 124 | 125 | # Publish Web Output 126 | *.[Pp]ublish.xml 127 | *.azurePubxml 128 | # TODO: Comment the next line if you want to checkin your web deploy settings 129 | # but database connection strings (with potential passwords) will be unencrypted 130 | *.pubxml 131 | *.publishproj 132 | 133 | # NuGet Packages 134 | *.nupkg 135 | # The packages folder can be ignored because of Package Restore 136 | **/packages/* 137 | # except build/, which is used as an MSBuild target. 138 | !**/packages/build/ 139 | # If using the old MSBuild-Integrated Package Restore, uncomment this: 140 | #!**/packages/repositories.config 141 | 142 | # Windows Azure Build Output 143 | csx/ 144 | *.build.csdef 145 | 146 | # Windows Store app package directory 147 | AppPackages/ 148 | 149 | # Others 150 | sql/ 151 | *.Cache 152 | ClientBin/ 153 | [Ss]tyle[Cc]op.* 154 | ~$* 155 | *~ 156 | *.dbmdl 157 | *.dbproj.schemaview 158 | *.pfx 159 | *.publishsettings 160 | node_modules/ 161 | 162 | # RIA/Silverlight projects 163 | Generated_Code/ 164 | 165 | # Backup & report files from converting an old project file 166 | # to a newer Visual Studio version. Backup files are not needed, 167 | # because we have git ;-) 168 | _UpgradeReport_Files/ 169 | Backup*/ 170 | UpgradeLog*.XML 171 | UpgradeLog*.htm 172 | 173 | # SQL Server files 174 | *.mdf 175 | *.ldf 176 | 177 | # Business Intelligence projects 178 | *.rdl.data 179 | *.bim.layout 180 | *.bim_*.settings 181 | 182 | # Microsoft Fakes 183 | FakesAssemblies/ 184 | 185 | .vs/ -------------------------------------------------------------------------------- /IHExt/IHExt.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Debug 6 | AnyCPU 7 | {FB2424C9-F46F-435A-B6AE-02B1AA32481C} 8 | WinExe 9 | Properties 10 | IHExt 11 | IHExt 12 | v4.5 13 | 512 14 | {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} 15 | 4 16 | 17 | 18 | AnyCPU 19 | true 20 | full 21 | false 22 | bin\Debug\ 23 | DEBUG;TRACE 24 | prompt 25 | 4 26 | 27 | 28 | AnyCPU 29 | pdbonly 30 | true 31 | bin\Release\ 32 | TRACE 33 | prompt 34 | 4 35 | 36 | 37 | LocalIntranet 38 | 39 | 40 | false 41 | 42 | 43 | Properties\app.manifest 44 | 45 | 46 | false 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 4.0 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | MSBuild:Compile 68 | Designer 69 | 70 | 71 | MSBuild:Compile 72 | Designer 73 | 74 | 75 | App.xaml 76 | Code 77 | 78 | 79 | MainWindow.xaml 80 | Code 81 | 82 | 83 | 84 | 85 | Code 86 | 87 | 88 | True 89 | True 90 | Resources.resx 91 | 92 | 93 | True 94 | Settings.settings 95 | True 96 | 97 | 98 | ResXFileCodeGenerator 99 | Resources.Designer.cs 100 | 101 | 102 | 103 | SettingsSingleFileGenerator 104 | Settings.Designer.cs 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 119 | -------------------------------------------------------------------------------- /IHExt/Properties/Resources.resx: -------------------------------------------------------------------------------- 1 | 2 | 3 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | text/microsoft-resx 107 | 108 | 109 | 2.0 110 | 111 | 112 | System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 113 | 114 | 115 | System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 116 | 117 | -------------------------------------------------------------------------------- /IHExt/MainWindow.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.ComponentModel; 4 | using System.Linq; 5 | using System.Text; 6 | using System.Threading.Tasks; 7 | using System.Windows; 8 | using System.Windows.Controls; 9 | using System.Windows.Data; 10 | using System.Windows.Documents; 11 | using System.Windows.Input; 12 | using System.Windows.Markup; 13 | using System.Windows.Media; 14 | using System.Windows.Media.Imaging; 15 | using System.Windows.Navigation; 16 | using System.Windows.Shapes; 17 | 18 | namespace IHExt { 19 | /// 20 | /// Interaction logic for MainWindow.xaml 21 | /// 22 | public partial class MainWindow : Window { 23 | public MainWindow() { 24 | InitializeComponent(); 25 | 26 | Loaded += MainWindow_Loaded; 27 | } 28 | 29 | void MainWindow_Loaded(object sender, RoutedEventArgs e) { 30 | this.AnnounceLogBlockout.Visibility = Visibility.Hidden; 31 | this.runningLabel.Visibility = Visibility.Hidden; 32 | this.menuTitle.Visibility = Visibility.Hidden; 33 | this.menuItems.Visibility = Visibility.Hidden; 34 | this.menuTestWrap.Visibility = Visibility.Hidden; 35 | this.menuWrap.Visibility = Visibility.Hidden; 36 | this.menuHelp.Visibility = Visibility.Hidden; 37 | } 38 | 39 | void TextControl_OnEnter(object sender, KeyEventArgs e) { 40 | if (e.Key == Key.Enter) { 41 | TextBox textBox = (TextBox)sender; 42 | 43 | var app = (App)Application.Current; 44 | app.ToMgsvCmd("input|"+textBox.Name+"|"+textBox.Text); 45 | 46 | textBox.Text = String.Empty; 47 | 48 | e.Handled = true; 49 | } 50 | } 51 | 52 | public void ListBox_OnSelectionChanged(object sender, RoutedEventArgs e) 53 | { 54 | ListBox listBox = sender as ListBox; 55 | if (listBox != null) 56 | { 57 | ListBoxItem lbi = ((sender as ListBox).SelectedItem as ListBoxItem); 58 | int selectedIndex = listBox.SelectedIndex; 59 | 60 | if (selectedIndex == -1)//tex no item selected 61 | { 62 | } else { 63 | var app = (App)Application.Current; 64 | app.ToMgsvCmd("selected|" + listBox.Name + "|" + selectedIndex.ToString()); 65 | } 66 | 67 | e.Handled = true; 68 | } 69 | } 70 | 71 | public void ListBox_OnDoubleClick(object sender, RoutedEventArgs e) 72 | { 73 | ListBox listBox = sender as ListBox; 74 | if (listBox != null) 75 | { 76 | ListBoxItem lbi = (listBox.SelectedItem as ListBoxItem); 77 | int selectedIndex = listBox.SelectedIndex; 78 | 79 | if (selectedIndex == -1)//tex no item selected 80 | { 81 | } else 82 | { 83 | var app = (App)Application.Current; 84 | app.ToMgsvCmd("activate|" + listBox.Name + "|" + selectedIndex.ToString()); 85 | } 86 | 87 | e.Handled = true; 88 | } 89 | } 90 | 91 | public void ComboBox_OnSelectionChanged(object sender, RoutedEventArgs e) 92 | { 93 | ComboBox comboBox = sender as ComboBox; 94 | if (comboBox != null) 95 | { 96 | ComboBoxItem lbi = (comboBox.SelectedItem as ComboBoxItem); 97 | int selectedIndex = comboBox.SelectedIndex; 98 | 99 | if (selectedIndex == -1)//tex no item selected 100 | { 101 | } else 102 | { 103 | var app = (App)Application.Current; 104 | app.ToMgsvCmd("selectedcombo|" + comboBox.Name + "|" + selectedIndex.ToString()); 105 | } 106 | 107 | e.Handled = true; 108 | } 109 | } 110 | 111 | private void minButton_Click(object sender, RoutedEventArgs e) 112 | { 113 | WindowState = WindowState.Minimized; 114 | } 115 | 116 | private void Window_Activated(object sender, EventArgs e) 117 | { 118 | minButton.Visibility = Visibility.Visible; 119 | } 120 | 121 | private void Window_Deactivated(object sender, EventArgs e) 122 | { 123 | minButton.Visibility = Visibility.Hidden; 124 | } 125 | 126 | private void Window_KeyDown(object sender, KeyEventArgs e) 127 | { 128 | if (e.Key == Key.Space) 129 | { 130 | var app = (App)Application.Current; 131 | app.ToMgsvCmd("togglemenu"); 132 | } 133 | } 134 | 135 | private void ComboBox_KeyDown(object sender, KeyEventArgs e) 136 | { 137 | if (e.Key == Key.Enter) 138 | { 139 | ComboBox comboBox = (ComboBox)sender; 140 | 141 | var app = (App)Application.Current; 142 | app.ToMgsvCmd("input|" + comboBox.Name + "|" + comboBox.Text); 143 | 144 | comboBox.Text = String.Empty; 145 | 146 | e.Handled = true; 147 | } 148 | } 149 | 150 | private void ComboBox_LostFocus(object sender, RoutedEventArgs e) 151 | { 152 | //tex user edited combobox 153 | ComboBox comboBox = (ComboBox)sender; 154 | if (comboBox.SelectedIndex == -1) 155 | { 156 | var app = (App)Application.Current; 157 | app.ToMgsvCmd("comboboxtocurrent|" + comboBox.Name + "|" + comboBox.Text); 158 | 159 | e.Handled = true; 160 | } 161 | } 162 | 163 | private void OnGotKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e) 164 | { 165 | var app = (App)Application.Current; 166 | app.ToMgsvCmd("GotKeyboardFocus|" + menuLine.Name); 167 | menuLine.SelectAll(); 168 | 169 | e.Handled = true; 170 | } 171 | 172 | private void OnKeyDown(object sender, KeyEventArgs e) 173 | { 174 | if (e.Key == Key.Enter) 175 | { 176 | var app = (App)Application.Current; 177 | app.ToMgsvCmd("EnterText|" + menuLine.Name + "|" + menuLine.Text); 178 | } 179 | //DEBUGNOW e.Handled = true; 180 | } 181 | 182 | private void OnPreviewMouseLeftButtonDown(object sender, MouseButtonEventArgs e) 183 | { 184 | 185 | TextBox textBox = sender as TextBox; 186 | 187 | if (textBox != null) 188 | 189 | { 190 | if (!textBox.IsKeyboardFocused) 191 | { 192 | textBox.Focus(); 193 | 194 | textBox.SelectAll(); 195 | 196 | e.Handled = true; 197 | } 198 | } 199 | } 200 | } 201 | } 202 | -------------------------------------------------------------------------------- /IHExt/MainWindow.xaml: -------------------------------------------------------------------------------- 1 | 14 | 15 | 16 | 17 | 18 | 33 | 34 | 35 | 44 | 53 | 62 | 71 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 93 | 94 | 95 | 104 | 105 | 106 | 116 | 117 | 118 | 119 | 129 | 130 | 140 | 141 | 142 | 143 | 144 | 154 | 155 | 156 | 157 | 159 | 168 | 169 | 170 | 171 | 172 | 173 | 174 | 175 | 176 | 177 | 187 | 188 | 189 | 190 | 191 | 192 | 193 | 194 | 195 | 198 | 199 | 200 | 201 | 202 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | 212 | 213 | 214 | 215 | 216 |