aboutsummaryrefslogtreecommitdiff
path: root/Histacom2/SaveDialogs
diff options
context:
space:
mode:
authorAlex-TIMEHACK <[email protected]>2017-11-04 09:43:02 +0000
committerAlex-TIMEHACK <[email protected]>2017-11-04 09:43:02 +0000
commit6ab1468786f1e865e9ff408d32149f9c9620d844 (patch)
tree45bac91aba019027213bdd37bac9f43c0a93853e /Histacom2/SaveDialogs
parent2a473d05a34afe51cf0f5340cbdd48ad4e771657 (diff)
downloadhistacom2-6ab1468786f1e865e9ff408d32149f9c9620d844.tar.gz
histacom2-6ab1468786f1e865e9ff408d32149f9c9620d844.tar.bz2
histacom2-6ab1468786f1e865e9ff408d32149f9c9620d844.zip
Fix bugs
...and get rid of all == false and == true
Diffstat (limited to 'Histacom2/SaveDialogs')
-rw-r--r--Histacom2/SaveDialogs/LoadGameProfileItem.cs6
-rw-r--r--Histacom2/SaveDialogs/NewGameDialog.cs4
-rw-r--r--Histacom2/SaveDialogs/SaveFileTroubleShooter.cs2
3 files changed, 6 insertions, 6 deletions
diff --git a/Histacom2/SaveDialogs/LoadGameProfileItem.cs b/Histacom2/SaveDialogs/LoadGameProfileItem.cs
index bdc0b7c..646601b 100644
--- a/Histacom2/SaveDialogs/LoadGameProfileItem.cs
+++ b/Histacom2/SaveDialogs/LoadGameProfileItem.cs
@@ -37,7 +37,7 @@ namespace Histacom2
if (!ClientRectangle.Contains(PointToClient(Control.MousePosition)))
{
sidebar.Hide();
- if (OnceRemoveHeight == false)
+ if (!OnceRemoveHeight)
{
this.Height -= 28;
OnceRemoveHeight = true;
@@ -49,7 +49,7 @@ namespace Histacom2
} else
{
sidebar.Show();
- if (OnceAddHeight == false)
+ if (!OnceAddHeight)
{
this.Height += 28;
OnceAddHeight = true;
@@ -95,7 +95,7 @@ namespace Histacom2
{
try
{
- if (!RequestingNewName == false)
+ if (!RequestingNewName)
{
if (textBox1.Text == "")
{
diff --git a/Histacom2/SaveDialogs/NewGameDialog.cs b/Histacom2/SaveDialogs/NewGameDialog.cs
index eb8d44f..e3ecd00 100644
--- a/Histacom2/SaveDialogs/NewGameDialog.cs
+++ b/Histacom2/SaveDialogs/NewGameDialog.cs
@@ -46,7 +46,7 @@ namespace Histacom2
if (!(txtProfName.Text.Length > 20))
{
ProfileName = txtProfName.Text;
- if (DevMode == true)
+ if (DevMode)
{
if (Directory.Exists(ProfileDirectory))
{
@@ -84,7 +84,7 @@ namespace Histacom2
private void NewGameDialog_Load(object sender, EventArgs e)
{
- if (DevMode == true)
+ if (DevMode)
{
btnDevMode.Show();
}
diff --git a/Histacom2/SaveDialogs/SaveFileTroubleShooter.cs b/Histacom2/SaveDialogs/SaveFileTroubleShooter.cs
index eceff04..3283ca1 100644
--- a/Histacom2/SaveDialogs/SaveFileTroubleShooter.cs
+++ b/Histacom2/SaveDialogs/SaveFileTroubleShooter.cs
@@ -193,7 +193,7 @@ namespace Histacom2.SaveDialogs
{
pnlResolved.Visible = true;
label1.Hide();
- if (successful == true)
+ if (successful)
{
label2.Text = "The issue has been resolved.";