kleinigleiten
This commit is contained in:
+20
-4
@@ -32,6 +32,7 @@
|
||||
dataGridView1 = new DataGridView();
|
||||
bt_Save = new Button();
|
||||
cb_OPenPathAferSave = new CheckBox();
|
||||
cb_Border = new CheckBox();
|
||||
((System.ComponentModel.ISupportInitialize)dataGridView1).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
@@ -49,16 +50,16 @@
|
||||
//
|
||||
dataGridView1.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
|
||||
dataGridView1.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
||||
dataGridView1.Location = new Point(12, 41);
|
||||
dataGridView1.Location = new Point(12, 92);
|
||||
dataGridView1.Name = "dataGridView1";
|
||||
dataGridView1.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
||||
dataGridView1.Size = new Size(776, 473);
|
||||
dataGridView1.Size = new Size(776, 422);
|
||||
dataGridView1.TabIndex = 3;
|
||||
dataGridView1.CellContentClick += dataGridView1_CellContentClick;
|
||||
//
|
||||
// bt_Save
|
||||
//
|
||||
bt_Save.Location = new Point(181, 12);
|
||||
bt_Save.Location = new Point(424, 12);
|
||||
bt_Save.Name = "bt_Save";
|
||||
bt_Save.Size = new Size(234, 23);
|
||||
bt_Save.TabIndex = 4;
|
||||
@@ -71,18 +72,32 @@
|
||||
cb_OPenPathAferSave.AutoSize = true;
|
||||
cb_OPenPathAferSave.Checked = true;
|
||||
cb_OPenPathAferSave.CheckState = CheckState.Checked;
|
||||
cb_OPenPathAferSave.Location = new Point(421, 16);
|
||||
cb_OPenPathAferSave.Location = new Point(181, 12);
|
||||
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;
|
||||
//
|
||||
// cb_Border
|
||||
//
|
||||
cb_Border.AutoSize = true;
|
||||
cb_Border.Checked = true;
|
||||
cb_Border.CheckState = CheckState.Checked;
|
||||
cb_Border.Location = new Point(181, 37);
|
||||
cb_Border.Name = "cb_Border";
|
||||
cb_Border.Size = new Size(131, 19);
|
||||
cb_Border.TabIndex = 6;
|
||||
cb_Border.Text = "QR-Code mit Rand?";
|
||||
cb_Border.UseVisualStyleBackColor = true;
|
||||
cb_Border.CheckedChanged += cb_Border_CheckedChanged;
|
||||
//
|
||||
// QR4AudioGuide
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
ClientSize = new Size(800, 520);
|
||||
Controls.Add(cb_Border);
|
||||
Controls.Add(cb_OPenPathAferSave);
|
||||
Controls.Add(bt_Save);
|
||||
Controls.Add(dataGridView1);
|
||||
@@ -100,5 +115,6 @@
|
||||
private DataGridView dataGridView1;
|
||||
private Button bt_Save;
|
||||
private CheckBox cb_OPenPathAferSave;
|
||||
private CheckBox cb_Border;
|
||||
}
|
||||
}
|
||||
@@ -36,12 +36,12 @@ namespace QR_Code_Generator
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
Application.DoEvents();
|
||||
list();
|
||||
|
||||
|
||||
}
|
||||
|
||||
private async void list()
|
||||
{
|
||||
|
||||
|
||||
Application.DoEvents();
|
||||
|
||||
var dirs = await ListAllDirectoriesAsync("astronomiemuseum.de", "w01d9fc3", "7sFv4vQJEQ3RTm3a", "/audioguide.astromuseum.de");
|
||||
@@ -156,7 +156,7 @@ namespace QR_Code_Generator
|
||||
qrCode.Save(filePath, System.Drawing.Imaging.ImageFormat.Png);
|
||||
}
|
||||
}
|
||||
if(cb_OPenPathAferSave.Checked)
|
||||
if (cb_OPenPathAferSave.Checked)
|
||||
{
|
||||
System.Diagnostics.Process.Start("explorer.exe", selectedPath);
|
||||
}
|
||||
@@ -182,5 +182,10 @@ namespace QR_Code_Generator
|
||||
{
|
||||
SaveSelectedQRCodes(dataGridView1, eCCLevel);
|
||||
}
|
||||
|
||||
private void cb_Border_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
drawQuietZones = cb_Border.Checked;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user