Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view

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

15 changes: 14 additions & 1 deletion nppRandomStringGenerator/Forms/ConfigAndGenerate.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,13 @@ private void SaveSettings()

private async void ButtonGenerate_Click(Object sender, EventArgs e)
{
if (RadioButtonReplace.Checked && TextBoxReplace.TextLength == 0)
{
MessageBox.Show("Please enter a placeholder to replace.");
TextBoxReplace.Focus();
return;
}

this.Cursor = Cursors.WaitCursor;

this.AvailableChars = "";
Expand Down Expand Up @@ -169,6 +176,7 @@ private async void ButtonGenerate_Click(Object sender, EventArgs e)
if (RadioButtonNew.Checked) this.Notepad.FileNew();
if (RadioButtonCurrent.Checked) this.Editor.DocumentEnd();
if (RadioButtonInline.Checked) this.Editor.DocumentStart();
if (RadioButtonReplace.Checked) this.Editor.DocumentStart();

Generator = new StringGenerator
{
Expand Down Expand Up @@ -360,7 +368,7 @@ private void ButtonCancel_Click(object sender, EventArgs e)

private void ComboBoxGUIDFormat_SelectedIndexChanged(object sender, EventArgs e)
{
label20.Visible = false;
this.button1.PerformClick();
}

private void button1_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -411,6 +419,11 @@ private int GetReplacementCount()
}

private void TextBoxReplace_TextChanged(object sender, EventArgs e)
{

}

private void TextBoxReplace_Validating(object sender, System.ComponentModel.CancelEventArgs e)
{
if (RadioButtonReplace.Checked && TextBoxReplace.Text.Length > 0)
{
Expand Down
4 changes: 2 additions & 2 deletions nppRandomStringGenerator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// 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.9.9")]
[assembly: AssemblyFileVersion("1.9.9")]
[assembly: AssemblyVersion("1.9.10")]
[assembly: AssemblyFileVersion("1.9.10")]