Skip to content

Commit

Permalink
Updated PDFEncrypt v1: various bugfixes and feature updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryangriggs committed Dec 1, 2022
1 parent ad75f8d commit 9e464ab
Show file tree
Hide file tree
Showing 9 changed files with 1,099 additions and 653 deletions.
3 changes: 2 additions & 1 deletion PDFEncrypt.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<ApplicationIcon>logo.ico</ApplicationIcon>
<ApplicationIcon>logo2.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<SignManifests>false</SignManifests>
Expand Down Expand Up @@ -161,6 +161,7 @@
</ItemGroup>
<ItemGroup>
<Content Include="logo.ico" />
<Content Include="logo2.ico" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include=".NETFramework,Version=v4.7.2">
Expand Down
10 changes: 6 additions & 4 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Reflection;
using System.Resources;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

Expand All @@ -10,7 +11,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("PDFEncrypt.net")]
[assembly: AssemblyProduct("PDFEncrypt")]
[assembly: AssemblyCopyright("Copyright © 2019")]
[assembly: AssemblyCopyright("Copyright © 2019-2022")]
[assembly: AssemblyTrademark("Released under AGPL")]
[assembly: AssemblyCulture("")]

Expand All @@ -32,5 +33,6 @@
// 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("1.0.*")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyVersion("1.1.*")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: NeutralResourcesLanguage("en")]
139 changes: 73 additions & 66 deletions frmInputBox.Designer.cs

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

9 changes: 7 additions & 2 deletions frmInputBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public partial class frmInputBox : Form
public string result; // The result of the input box action.
public string prompt; // Prompt to be displayed.
public string title; // Title of box
public bool password; // Is the input a password?

public bool cancelled;
public frmInputBox()
{
Expand All @@ -23,8 +25,7 @@ public frmInputBox()

private void frmInputBox_Load(object sender, EventArgs e)
{
lblPrompt.Text = prompt;
this.Text = title;


}

Expand All @@ -45,6 +46,10 @@ private void btnCancel_Click(object sender, EventArgs e)
private void frmInputBox_Shown(object sender, EventArgs e)
{
txtInput.Focus();
txtInput.Text = ""; // Clear input on load.
lblPrompt.Text = prompt;
this.Text = title;
txtInput.PasswordChar = (password) ? '*' : (char)0;
}
}
}
Loading

0 comments on commit 9e464ab

Please sign in to comment.