summaryrefslogtreecommitdiff
path: root/Aktywator/MysqlSettings.cs
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2017-08-22 20:46:40 +0200
committeremkael <emkael@tlen.pl>2017-08-22 20:46:40 +0200
commit1bb11519992d69339943cb20b50fcb7a84769fa7 (patch)
tree61a2a52e82659fb897e980740c76e2540e359386 /Aktywator/MysqlSettings.cs
parent4c5ef38bee2cc8f2420ffac0b60dddc02f0589cc (diff)
parentdff9977d85ed30c038c7db4ba14a6a6239f377ed (diff)
Merge branch 'mysql-settings-flag' into 1.1-beta
Conflicts: Aktywator.txt
Diffstat (limited to 'Aktywator/MysqlSettings.cs')
-rw-r--r--Aktywator/MysqlSettings.cs13
1 files changed, 10 insertions, 3 deletions
diff --git a/Aktywator/MysqlSettings.cs b/Aktywator/MysqlSettings.cs
index df2fb15..c6f1b8c 100644
--- a/Aktywator/MysqlSettings.cs
+++ b/Aktywator/MysqlSettings.cs
@@ -29,11 +29,18 @@ namespace Aktywator
Properties.Settings.Default.USER = eUser.Text;
Properties.Settings.Default.PASS = ePass.Text;
Properties.Settings.Default.PORT = ePort.Text;
- Properties.Settings.Default.Save();
string msg = MySQL.test();
- if (msg == "") Close();
- else MessageBox.Show(msg, "Nieprawidłowe ustawienia", MessageBoxButtons.OK, MessageBoxIcon.Stop);
+ if (msg == "")
+ {
+ Properties.Settings.Default.CONFIGURED = true;
+ Properties.Settings.Default.Save();
+ Close();
+ }
+ else
+ {
+ MessageBox.Show(msg, "Nieprawidłowe ustawienia", MessageBoxButtons.OK, MessageBoxIcon.Stop);
+ }
}
}
}