Audioguides QR Code ordner öffnen hinzu

This commit is contained in:
2025-11-06 17:37:08 +01:00
parent e02b7c6edc
commit 1ec2d6d8ee
2 changed files with 20 additions and 1 deletions
+16
View File
@@ -31,6 +31,7 @@
bt_connect = new Button(); bt_connect = new Button();
dataGridView1 = new DataGridView(); dataGridView1 = new DataGridView();
bt_Save = new Button(); bt_Save = new Button();
cb_OPenPathAferSave = new CheckBox();
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
SuspendLayout(); SuspendLayout();
// //
@@ -65,11 +66,24 @@
bt_Save.UseVisualStyleBackColor = true; bt_Save.UseVisualStyleBackColor = true;
bt_Save.Click += bt_Save_Click; 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 // QR4AudioGuide
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 520); ClientSize = new Size(800, 520);
Controls.Add(cb_OPenPathAferSave);
Controls.Add(bt_Save); Controls.Add(bt_Save);
Controls.Add(dataGridView1); Controls.Add(dataGridView1);
Controls.Add(bt_connect); Controls.Add(bt_connect);
@@ -77,6 +91,7 @@
Text = "QR4AudioGuide"; Text = "QR4AudioGuide";
((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView1).EndInit();
ResumeLayout(false); ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion
@@ -84,5 +99,6 @@
private Button bt_connect; private Button bt_connect;
private DataGridView dataGridView1; private DataGridView dataGridView1;
private Button bt_Save; private Button bt_Save;
private CheckBox cb_OPenPathAferSave;
} }
} }
+4 -1
View File
@@ -152,7 +152,10 @@ namespace QR_Code_Generator
qrCode.Save(filePath, System.Drawing.Imaging.ImageFormat.Png); 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); MessageBox.Show("QR-Codes gespeichert!", "Fertig", MessageBoxButtons.OK, MessageBoxIcon.Information);
} }
} }