From 1ec2d6d8ee27328162f47436b3f6c8910e0a1548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 6 Nov 2025 17:37:08 +0100 Subject: [PATCH] =?UTF-8?q?Audioguides=20QR=20Code=20ordner=20=C3=B6ffnen?= =?UTF-8?q?=20hinzu?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- QR-Code-Generator/QR4AudioGuide.Designer.cs | 16 ++++++++++++++++ QR-Code-Generator/QR4AudioGuide.cs | 5 ++++- 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/QR-Code-Generator/QR4AudioGuide.Designer.cs b/QR-Code-Generator/QR4AudioGuide.Designer.cs index 7e9a122..2760104 100644 --- a/QR-Code-Generator/QR4AudioGuide.Designer.cs +++ b/QR-Code-Generator/QR4AudioGuide.Designer.cs @@ -31,6 +31,7 @@ bt_connect = new Button(); dataGridView1 = new DataGridView(); bt_Save = new Button(); + cb_OPenPathAferSave = new CheckBox(); ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit(); SuspendLayout(); // @@ -65,11 +66,24 @@ bt_Save.UseVisualStyleBackColor = true; bt_Save.Click += bt_Save_Click; // + // cb_OPenPathAferSave + // + cb_OPenPathAferSave.AutoSize = true; + cb_OPenPathAferSave.Checked = true; + cb_OPenPathAferSave.CheckState = CheckState.Checked; + cb_OPenPathAferSave.Location = new Point(421, 16); + cb_OPenPathAferSave.Name = "cb_OPenPathAferSave"; + cb_OPenPathAferSave.Size = new Size(214, 19); + cb_OPenPathAferSave.TabIndex = 5; + cb_OPenPathAferSave.Text = "Speicherort nach Abschluss öffnen?"; + cb_OPenPathAferSave.UseVisualStyleBackColor = true; + // // QR4AudioGuide // AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleMode = AutoScaleMode.Font; ClientSize = new Size(800, 520); + Controls.Add(cb_OPenPathAferSave); Controls.Add(bt_Save); Controls.Add(dataGridView1); Controls.Add(bt_connect); @@ -77,6 +91,7 @@ Text = "QR4AudioGuide"; ((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit(); ResumeLayout(false); + PerformLayout(); } #endregion @@ -84,5 +99,6 @@ private Button bt_connect; private DataGridView dataGridView1; private Button bt_Save; + private CheckBox cb_OPenPathAferSave; } } \ No newline at end of file diff --git a/QR-Code-Generator/QR4AudioGuide.cs b/QR-Code-Generator/QR4AudioGuide.cs index 6e2eeaf..6f2dae4 100644 --- a/QR-Code-Generator/QR4AudioGuide.cs +++ b/QR-Code-Generator/QR4AudioGuide.cs @@ -152,7 +152,10 @@ namespace QR_Code_Generator qrCode.Save(filePath, System.Drawing.Imaging.ImageFormat.Png); } } - + if(cb_OPenPathAferSave.Checked) + { + System.Diagnostics.Process.Start("explorer.exe", selectedPath); + } MessageBox.Show("QR-Codes gespeichert!", "Fertig", MessageBoxButtons.OK, MessageBoxIcon.Information); } }