Skip to content

Commit

Permalink
Added ShowInTaskbar Setting for PoshSec#14
Browse files Browse the repository at this point in the history
Adding minimize to taskbar option for
PoshSec#14
  • Loading branch information
Ben0xA committed May 21, 2014
1 parent 61e20fc commit afcb62e
Show file tree
Hide file tree
Showing 6 changed files with 232 additions and 148 deletions.
170 changes: 110 additions & 60 deletions poshsecframework/Interface/frmSettings.Designer.cs

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

16 changes: 16 additions & 0 deletions poshsecframework/Interface/frmSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ private void LoadSettings()
}
ckNameCheck.Checked = Properties.Settings.Default.NameChecking;
ckSaveSystems.Checked = Properties.Settings.Default.SaveSystems;
ckShowinTaskbar.Checked = Properties.Settings.Default.ShowInTaskbar;
ckOutputLog.Checked = Properties.Settings.Default.LogOutput;
ckAlertLog.Checked = Properties.Settings.Default.LogAlerts;
txtOutputLog.Text = Properties.Settings.Default.OutputLogFile;
Expand Down Expand Up @@ -236,6 +237,7 @@ private bool Save()
}
Properties.Settings.Default["FirstTime"] = firsttime;
Properties.Settings.Default["NameChecking"] = ckNameCheck.Checked;
Properties.Settings.Default["ShowInTaskbar"] = ckNameCheck.Checked;
Properties.Settings.Default["SaveSystems"] = ckSaveSystems.Checked;
if (!ckSaveSystems.Checked)
{
Expand Down Expand Up @@ -386,6 +388,20 @@ private void ckSaveSystems_CheckedChanged(object sender, EventArgs e)
}
}

private void ckShowinTaskbar_CheckedChanged(object sender, EventArgs e)
{
if (ckShowinTaskbar.Checked)
{
ckShowinTaskbar.Text = "Yes";
ckShowinTaskbar.Image = Properties.Resources.dialogyes;
}
else
{
ckShowinTaskbar.Text = "No";
ckShowinTaskbar.Image = Properties.Resources.dialogno2;
}
}

private void ckOutputLog_CheckedChanged(object sender, EventArgs e)
{
if (ckOutputLog.Checked)
Expand Down
Loading

0 comments on commit afcb62e

Please sign in to comment.