Skip to content

Commit 3da98a4

Browse files
committed
Last code submit before initial release.
1 parent 3fecffe commit 3da98a4

File tree

4 files changed

+88
-5
lines changed

4 files changed

+88
-5
lines changed

Forms/KeyCaptureConfig.cs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
using System;
2626
using System.Collections.Generic;
27+
using System.ComponentModel;
2728
using System.Drawing;
2829
using System.IO;
2930
using System.Text;
@@ -91,7 +92,7 @@ private void KeyCaptureConfig_Load(object sender, EventArgs e)
9192
IniManager.RestoreState(this, m_zIniManager.GetValue(Name));
9293

9394
// setup the various mouse output options
94-
comboBoxMouseOut.Items.Add("No Mouse Action");
95+
comboBoxMouseOut.Items.Add("No Action");
9596
foreach (IODefinition.MouseButton sName in Enum.GetValues(typeof(IODefinition.MouseButton)))
9697
{
9798
comboBoxMouseOut.Items.Add(sName);
@@ -132,6 +133,18 @@ private void exitMainToolStripMenuItem_Click(object sender, EventArgs e)
132133
Close();
133134
}
134135

136+
private void newToolStripMenuItem_Click(object sender, EventArgs e)
137+
{
138+
var zCancelEvent = new CancelEventArgs();
139+
SaveOnClose(zCancelEvent);
140+
if (zCancelEvent.Cancel)
141+
{
142+
return;
143+
}
144+
listViewKeys.Items.Clear();
145+
InitNew();
146+
}
147+
135148
private void KeyCaptureConfig_FormClosing(object sender, FormClosingEventArgs e)
136149
{
137150
if (m_bRun && !panelKeySetup.Enabled)

Forms/KeyCaptureConfig.designer.cs

Lines changed: 68 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

KeyCap.csproj

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,10 @@
108108
<None Include="Resources\KeyCapIdle.ico" />
109109
</ItemGroup>
110110
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
111+
<PropertyGroup>
112+
<PostBuildEvent>DEL "$(SolutionDir)$(OutDir)*.zip"
113+
"C:\Program Files\7-Zip\7z" a "$(TargetDir)KeyCap_X.X.X.X.zip" "$(TargetDir)KeyCap.exe" "$(TargetDir)KeyCapLib.dll" "$(TargetDir)KeyCap.pdf" "$(TargetDir)Readme.txt" "$(TargetDir)History.txt" -tzip -mx5</PostBuildEvent>
114+
</PropertyGroup>
111115
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
112116
Other similar extension points exist, see Microsoft.Common.targets.
113117
<Target Name="BeforeBuild">

Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.0.0.0")]
35-
[assembly: AssemblyFileVersion("1.0.0.0")]
34+
[assembly: AssemblyVersion("0.0.0.13")]
35+
[assembly: AssemblyFileVersion("0.0.0.13")]

0 commit comments

Comments
 (0)