Skip to content

Commit

Permalink
Fix issue #12
Browse files Browse the repository at this point in the history
Fix issue #13
  • Loading branch information
DeadManWalkingTO committed Feb 24, 2019
1 parent 212e758 commit 3f68158
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 3 deletions.
4 changes: 4 additions & 0 deletions nspector/NVidiaProfileInspectorDmW.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<ItemGroup>
<Reference Include="AutoClosingMessageBox, Version=1.0.0.2, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\AutoClosingMessageBox.1.0.0.2\lib\net40\AutoClosingMessageBox.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Data" />
Expand Down Expand Up @@ -234,6 +237,7 @@
<Generator>TextTemplatingFileGenerator</Generator>
<LastGenOutput>NvApiDriverSettings.cs</LastGenOutput>
</None>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Content Include="CustomSettingNames.xml">
Expand Down
1 change: 1 addition & 0 deletions nspector/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ static class Program
/// <summary>
/// The main entry point for the application.
/// </summary>
///
[STAThread]
static void Main(string[] args)
{
Expand Down
4 changes: 2 additions & 2 deletions nspector/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3.6.2")]
[assembly: AssemblyFileVersion("3.3.6.2")]
[assembly: AssemblyVersion("3.3.6.3")]
[assembly: AssemblyFileVersion("3.3.6.3")]


1 change: 1 addition & 0 deletions nspector/dmw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
using System.Net;
using System.Reflection;
using System.Windows.Forms;
using System.Threading;

namespace DmW
{
Expand Down
26 changes: 26 additions & 0 deletions nspector/frmDrvSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -549,6 +549,8 @@ private void frmDrvSettings_Load(object sender, EventArgs e)
SetupLayout();
SetTitleVersion();

//Modified by DeadManWalking
CheckResetStartUpXY();
//Modified by DeadManWalking
Read_DmW_Data();

Expand Down Expand Up @@ -587,6 +589,30 @@ private void Read_DmW_Data()
}
}

private void CheckResetStartUpXY()
//Modified by DeadManWalking
{
var result = AutoClosingMessageBox.Show(
text: "Reset Window Position?",
caption: "Reset",
timeout: 2500,
buttons: MessageBoxButtons.YesNo,
defaultResult: System.Windows.Forms.DialogResult.Yes);
if (result == System.Windows.Forms.DialogResult.Yes)
{
//Yes
RegistryKey key = Registry.CurrentUser.CreateSubKey(@"SOFTWARE\NVidiaProfileInspectorDmW");
key.SetValue("X", 1);
key.SetValue("Y", 1);
key.Close();
}
else
{
//No
//do nothing
}
}

private void frmDrvSettings_Move(object sender, System.EventArgs e)
//Modified by DeadManWalking
{
Expand Down
4 changes: 4 additions & 0 deletions nspector/packages.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="AutoClosingMessageBox" version="1.0.0.2" targetFramework="net40" />
</packages>
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.3.6.2
v3.3.6.3

0 comments on commit 3f68158

Please sign in to comment.