Skip to content

Commit

Permalink
Merge pull request #6 from jussivirkkala/b1.7.0
Browse files Browse the repository at this point in the history
v1.7.0
  • Loading branch information
jussivirkkala committed Jul 25, 2024
2 parents 0f725d4 + 3a27a18 commit a022de4
Show file tree
Hide file tree
Showing 8 changed files with 248 additions and 225 deletions.
160 changes: 73 additions & 87 deletions Form1.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@

/**
* @jussivirkkala
* C:\Users\jussi\OneDrive\Tools\Utility\Clock
* https://www.hikvision.com/en/support/download/sdk/device-network-sdk--for-windows-64-bit-/
* V6.1.6.3_build20200925
* V6.1.6.3_build20200925
* 2024-07-24 v1.7.0 Removed maximize. Visual Studio 17.10.04, .NET Framwork 4.8.04084
* 2022-08-08 v1.6.3 (.1) Build version. Visual Studio 16.11.17. ClickOnce disabled.
* 2022-07-01 v1.6.0 Log computername, username only once with OS information. Added +500 ms to clock display.
* 2022-01-23 v1.5.0 .NET4.8. Visual Studio 16.11.9.
Expand Down Expand Up @@ -88,7 +88,6 @@ public Form1()
var buildNumber = registryKey.GetValue("UBR").ToString();
var productName = registryKey.GetValue("ProductName").ToString();
Log("OS\t" + System.Runtime.InteropServices.RuntimeInformation.OSDescription.Trim() + "." + buildNumber.ToString());
// + " " + productName);
Log("OSArchitecture\t" + System.Runtime.InteropServices.RuntimeInformation.OSArchitecture);
Log("ProcessArchitecture\t" + System.Runtime.InteropServices.RuntimeInformation.ProcessArchitecture);
Log("Framework\t" + System.Runtime.InteropServices.RuntimeInformation.FrameworkDescription);
Expand Down Expand Up @@ -231,7 +230,6 @@ private void Form1_Load(object sender, EventArgs e)
radioButton3.Checked = true;
}
}

private void Form1_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
radioButton3.Checked = true;
Expand Down Expand Up @@ -291,7 +289,6 @@ void Log(string s)
}
catch
{ }

}

// Sending preset to camera
Expand All @@ -315,7 +312,7 @@ private void Preset(Camera Camera, UInt32 PreSetNo)
else
{
label1.Text += "ok ";
Log("Set: " + PreSetNo.ToString()+"\t" + Camera.DVRIPAddress );
Log("Set: " + PreSetNo.ToString()+"\t" + Camera.DVRIPAddress );
}
if (!CHCNetSDK.NET_DVR_Logout(m_lUserID))
{
Expand All @@ -326,8 +323,9 @@ private void Preset(Camera Camera, UInt32 PreSetNo)
}
}

// 2021-10-12 Maximized

// 2024-04-27 Removed maximed option
// 2021-10-12 Maximize
/*
bool maximized = false;
private void bMaximize_Click(object sender, EventArgs e)
{
Expand All @@ -344,6 +342,7 @@ private void bMaximize_Click(object sender, EventArgs e)
}
maximized = !maximized;
}
*/
}
}

Expand Down
Loading

0 comments on commit a022de4

Please sign in to comment.