Skip to content
This repository has been archived by the owner on Mar 17, 2024. It is now read-only.

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxXor committed Aug 29, 2016
1 parent 65502a4 commit 64cb0e5
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions Server/Forms/FrmBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ private void btnAddHost_Click(object sender, EventArgs e)
}

#region "Context Menu"

private void removeHostToolStripMenuItem_Click(object sender, EventArgs e)
{
HasChanged();
Expand All @@ -157,11 +156,9 @@ private void clearToolStripMenuItem_Click(object sender, EventArgs e)

_hosts.Clear();
}

#endregion

#region "Misc"

private void chkShowPass_CheckedChanged(object sender, EventArgs e)
{
txtPassword.PasswordChar = (chkShowPass.Checked) ? '\0' : '•';
Expand Down Expand Up @@ -241,18 +238,14 @@ private void chkChangeIcon_CheckedChanged(object sender, EventArgs e)

UpdateIconControlStates();
}

#endregion

private bool CheckForEmptyInput()
{
return (!string.IsNullOrWhiteSpace(txtTag.Text) && !string.IsNullOrWhiteSpace(txtMutex.Text) &&
// General Settings
_hosts.Count > 0 && !string.IsNullOrWhiteSpace(txtPassword.Text) && // Connection
(!chkInstall.Checked || (chkInstall.Checked && !string.IsNullOrWhiteSpace(txtInstallName.Text))) &&
// Installation
(!chkStartup.Checked || (chkStartup.Checked && !string.IsNullOrWhiteSpace(txtRegistryKeyName.Text))));
// Installation
return (!string.IsNullOrWhiteSpace(txtTag.Text) && !string.IsNullOrWhiteSpace(txtMutex.Text) && // General Settings
_hosts.Count > 0 && !string.IsNullOrWhiteSpace(txtPassword.Text) && // Connection
(!chkInstall.Checked || (chkInstall.Checked && !string.IsNullOrWhiteSpace(txtInstallName.Text))) && // Installation
(!chkStartup.Checked || (chkStartup.Checked && !string.IsNullOrWhiteSpace(txtRegistryKeyName.Text)))); // Installation
}

private BuildOptions ValidateInput()
Expand Down Expand Up @@ -375,6 +368,7 @@ private void btnBuild_Click(object sender, EventArgs e)
return;

SetBuildState(false);

Thread t = new Thread(BuildClient);
t.Start(options);
}
Expand Down

0 comments on commit 64cb0e5

Please sign in to comment.