From 0550305e3f1f2558588b6b87a8c1b4004437ad3b Mon Sep 17 00:00:00 2001 From: emkael Date: Fri, 12 Oct 2018 20:43:25 +0200 Subject: MySQL settings --- kurier/Form1.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'kurier/Form1.cs') diff --git a/kurier/Form1.cs b/kurier/Form1.cs index 5da317b..eb6ab88 100644 --- a/kurier/Form1.cs +++ b/kurier/Form1.cs @@ -24,5 +24,16 @@ namespace kurier { this.tBucketID.Enabled = this.cSend.Checked; } + + private void Form1_Load(object sender, EventArgs e) + { + if (!MySQL.getConfigured()) (new MysqlSettings()).ShowDialog(); + if (!MySQL.getConfigured()) this.Dispose(); + } + + private void bSettings_Click(object sender, EventArgs e) + { + (new MysqlSettings()).ShowDialog(); + } } } -- cgit v1.2.3