Adresse verbessert

This commit is contained in:
2025-02-20 20:00:12 +01:00
parent 2bbf9b5398
commit f425842131
2 changed files with 63 additions and 36 deletions
+52 -35
View File
@@ -94,6 +94,7 @@
button_ChangeColorLight = new Button();
button_ChangeColorDark = new Button();
tb_IconSize = new TrackBar();
cb_drawQuietZones = new CheckBox();
tabControl1.SuspendLayout();
tabPage1.SuspendLayout();
tabPage2.SuspendLayout();
@@ -113,7 +114,7 @@
tabControl1.Location = new Point(12, 12);
tabControl1.Name = "tabControl1";
tabControl1.SelectedIndex = 0;
tabControl1.Size = new Size(420, 609);
tabControl1.Size = new Size(420, 660);
tabControl1.TabIndex = 0;
//
// tabPage1
@@ -124,14 +125,14 @@
tabPage1.Location = new Point(4, 24);
tabPage1.Name = "tabPage1";
tabPage1.Padding = new Padding(3);
tabPage1.Size = new Size(412, 581);
tabPage1.Size = new Size(412, 632);
tabPage1.TabIndex = 0;
tabPage1.Text = "Link";
tabPage1.UseVisualStyleBackColor = true;
//
// bt_gen_QR_URL
//
bt_gen_QR_URL.Location = new Point(6, 552);
bt_gen_QR_URL.Location = new Point(6, 66);
bt_gen_QR_URL.Name = "bt_gen_QR_URL";
bt_gen_QR_URL.Size = new Size(400, 23);
bt_gen_QR_URL.TabIndex = 2;
@@ -187,7 +188,7 @@
tabPage2.Location = new Point(4, 24);
tabPage2.Name = "tabPage2";
tabPage2.Padding = new Padding(3);
tabPage2.Size = new Size(412, 581);
tabPage2.Size = new Size(412, 632);
tabPage2.TabIndex = 1;
tabPage2.Text = "Adresse";
tabPage2.UseVisualStyleBackColor = true;
@@ -204,81 +205,81 @@
label12.AutoSize = true;
label12.Location = new Point(6, 366);
label12.Name = "label12";
label12.Size = new Size(44, 15);
label12.Size = new Size(33, 15);
label12.TabIndex = 24;
label12.Text = "label12";
label12.Text = "Land";
//
// label13
//
label13.AutoSize = true;
label13.Location = new Point(6, 337);
label13.Name = "label13";
label13.Size = new Size(44, 15);
label13.Size = new Size(27, 15);
label13.TabIndex = 23;
label13.Text = "label13";
label13.Text = "PLZ";
//
// label14
//
label14.AutoSize = true;
label14.Location = new Point(6, 308);
label14.Name = "label14";
label14.Size = new Size(44, 15);
label14.Size = new Size(24, 15);
label14.TabIndex = 22;
label14.Text = "label14";
label14.Text = "Ort";
//
// label15
//
label15.AutoSize = true;
label15.Location = new Point(6, 279);
label15.Name = "label15";
label15.Size = new Size(44, 15);
label15.Size = new Size(127, 15);
label15.TabIndex = 21;
label15.Text = "label15";
label15.Text = "Strasse - Hausnummer";
//
// label8
//
label8.AutoSize = true;
label8.Location = new Point(6, 250);
label8.Name = "label8";
label8.Size = new Size(38, 15);
label8.Size = new Size(55, 15);
label8.TabIndex = 20;
label8.Text = "label8";
label8.Text = "Webseite";
//
// label9
//
label9.AutoSize = true;
label9.Location = new Point(6, 221);
label9.Name = "label9";
label9.Size = new Size(38, 15);
label9.Size = new Size(36, 15);
label9.TabIndex = 19;
label9.Text = "label9";
label9.Text = "eMail";
//
// label10
//
label10.AutoSize = true;
label10.Location = new Point(6, 192);
label10.Name = "label10";
label10.Size = new Size(44, 15);
label10.Size = new Size(72, 15);
label10.TabIndex = 18;
label10.Text = "label10";
label10.Text = "Geschäftlich";
//
// label11
//
label11.AutoSize = true;
label11.Location = new Point(6, 163);
label11.Name = "label11";
label11.Size = new Size(44, 15);
label11.Size = new Size(42, 15);
label11.TabIndex = 17;
label11.Text = "label11";
label11.Text = "Handy";
//
// label6
//
label6.AutoSize = true;
label6.Location = new Point(6, 134);
label6.Name = "label6";
label6.Size = new Size(38, 15);
label6.Size = new Size(92, 15);
label6.TabIndex = 16;
label6.Text = "label6";
label6.Text = "Telefonnummer";
//
// label7
//
@@ -393,9 +394,9 @@
//
// bt_createQRAdress
//
bt_createQRAdress.Location = new Point(6, 552);
bt_createQRAdress.Location = new Point(6, 395);
bt_createQRAdress.Name = "bt_createQRAdress";
bt_createQRAdress.Size = new Size(400, 23);
bt_createQRAdress.Size = new Size(400, 68);
bt_createQRAdress.TabIndex = 0;
bt_createQRAdress.Text = "generiere QR";
bt_createQRAdress.UseVisualStyleBackColor = true;
@@ -414,7 +415,7 @@
tabPage3.Controls.Add(bt_createQR_WIFI);
tabPage3.Location = new Point(4, 24);
tabPage3.Name = "tabPage3";
tabPage3.Size = new Size(412, 581);
tabPage3.Size = new Size(412, 632);
tabPage3.TabIndex = 2;
tabPage3.Text = "WLAN";
tabPage3.UseVisualStyleBackColor = true;
@@ -496,7 +497,7 @@
//
// bt_createQR_WIFI
//
bt_createQR_WIFI.Location = new Point(6, 552);
bt_createQR_WIFI.Location = new Point(6, 207);
bt_createQR_WIFI.Name = "bt_createQR_WIFI";
bt_createQR_WIFI.Size = new Size(400, 23);
bt_createQR_WIFI.TabIndex = 1;
@@ -521,7 +522,7 @@
tabPage4.Location = new Point(4, 24);
tabPage4.Name = "tabPage4";
tabPage4.Padding = new Padding(3);
tabPage4.Size = new Size(412, 581);
tabPage4.Size = new Size(412, 632);
tabPage4.TabIndex = 3;
tabPage4.Text = "Termin";
tabPage4.UseVisualStyleBackColor = true;
@@ -535,6 +536,7 @@
ICAL_fullday.TabIndex = 30;
ICAL_fullday.Text = "ganztägig";
ICAL_fullday.UseVisualStyleBackColor = true;
ICAL_fullday.CheckedChanged += ICAL_fullday_CheckedChanged;
//
// ICAL_location
//
@@ -618,13 +620,13 @@
lb_ical_summary.AutoSize = true;
lb_ical_summary.Location = new Point(6, 19);
lb_ical_summary.Name = "lb_ical_summary";
lb_ical_summary.Size = new Size(71, 15);
lb_ical_summary.Size = new Size(73, 15);
lb_ical_summary.TabIndex = 19;
lb_ical_summary.Text = "Termin Titel:";
//
// bt_createQR_ICAL
//
bt_createQR_ICAL.Location = new Point(6, 555);
bt_createQR_ICAL.Location = new Point(6, 432);
bt_createQR_ICAL.Name = "bt_createQR_ICAL";
bt_createQR_ICAL.Size = new Size(400, 23);
bt_createQR_ICAL.TabIndex = 2;
@@ -683,21 +685,21 @@
//
// panel_ColorLight
//
panel_ColorLight.Location = new Point(480, 47);
panel_ColorLight.Location = new Point(604, 131);
panel_ColorLight.Name = "panel_ColorLight";
panel_ColorLight.Size = new Size(23, 23);
panel_ColorLight.TabIndex = 6;
//
// panel_ColorDark
//
panel_ColorDark.Location = new Point(480, 73);
panel_ColorDark.Location = new Point(604, 157);
panel_ColorDark.Name = "panel_ColorDark";
panel_ColorDark.Size = new Size(23, 23);
panel_ColorDark.TabIndex = 7;
//
// button_ChangeColorLight
//
button_ChangeColorLight.Location = new Point(509, 47);
button_ChangeColorLight.Location = new Point(633, 131);
button_ChangeColorLight.Name = "button_ChangeColorLight";
button_ChangeColorLight.Size = new Size(94, 23);
button_ChangeColorLight.TabIndex = 8;
@@ -707,7 +709,7 @@
//
// button_ChangeColorDark
//
button_ChangeColorDark.Location = new Point(509, 73);
button_ChangeColorDark.Location = new Point(633, 157);
button_ChangeColorDark.Name = "button_ChangeColorDark";
button_ChangeColorDark.Size = new Size(94, 23);
button_ChangeColorDark.TabIndex = 9;
@@ -717,20 +719,34 @@
//
// tb_IconSize
//
tb_IconSize.Location = new Point(517, 186);
tb_IconSize.Location = new Point(604, 186);
tb_IconSize.Maximum = 33;
tb_IconSize.Minimum = 10;
tb_IconSize.Name = "tb_IconSize";
tb_IconSize.Size = new Size(263, 45);
tb_IconSize.Size = new Size(176, 45);
tb_IconSize.TabIndex = 10;
tb_IconSize.Value = 15;
tb_IconSize.Scroll += tb_IconSize_Scroll;
//
// cb_drawQuietZones
//
cb_drawQuietZones.AutoSize = true;
cb_drawQuietZones.Checked = true;
cb_drawQuietZones.CheckState = CheckState.Checked;
cb_drawQuietZones.Location = new Point(598, 106);
cb_drawQuietZones.Name = "cb_drawQuietZones";
cb_drawQuietZones.Size = new Size(129, 19);
cb_drawQuietZones.TabIndex = 11;
cb_drawQuietZones.Text = "Rand um QR Code?";
cb_drawQuietZones.UseVisualStyleBackColor = true;
cb_drawQuietZones.CheckedChanged += cb_drawQuietZones_CheckedChanged;
//
// Main
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(929, 733);
Controls.Add(cb_drawQuietZones);
Controls.Add(tb_IconSize);
Controls.Add(button_ChangeColorDark);
Controls.Add(button_ChangeColorLight);
@@ -830,5 +846,6 @@
private TextBox ICAL_description;
private CheckBox ICAL_fullday;
private TrackBar tb_IconSize;
private CheckBox cb_drawQuietZones;
}
}
+11 -1
View File
@@ -167,7 +167,7 @@ namespace QR_Code_Generator
using QRCodeGenerator qrGenerator = new QRCodeGenerator();
QRCodeData qrCodeData = qrGenerator.CreateQrCode(payload, eCC, forceUtf8);
using QRCode qrCode = new QRCode(qrCodeData);
drawQuietZones = cb_drawQuietZones.CheckState == CheckState.Checked;
// Prüfen, ob ein Icon vorhanden ist
Bitmap? icon = pb_icon.Image != null ? new Bitmap(pb_icon.Image) : null;
@@ -305,5 +305,15 @@ namespace QR_Code_Generator
{
iconSizePercent = tb_IconSize.Value;
}
private void cb_drawQuietZones_CheckedChanged(object sender, EventArgs e)
{
}
private void ICAL_fullday_CheckedChanged(object sender, EventArgs e)
{
}
}
}