Prioritize remote program list in uploader layout

This commit is contained in:
Emporex committed 2026-10-25 17:59:12 +01:00
1 parent 5856a11a2c
commit 3fd2a81820
3 files changed
+18 -20

No files matched your search

+17 -19
View File
@@ -258,33 +258,33 @@ namespace PlasmaTapUploader
hintLabel.Size = new Size(605, 22);
hintLabel.AutoEllipsis = true;
fileList.Location = new Point(22, 82);
fileList.Size = new Size(605, 228);
fileList.Size = new Size(605, 140);
fileList.IntegralHeight = false;
fileList.AllowDrop = true;
chooseButton.Text = "Dateien auswaehlen...";
chooseButton.Location = new Point(22, 322);
chooseButton.Location = new Point(22, 234);
chooseButton.Size = new Size(150, 30);
clearButton.Text = "Liste leeren";
clearButton.Location = new Point(180, 322);
clearButton.Location = new Point(180, 234);
clearButton.Size = new Size(105, 30);
uploadButton.Text = "Nach Nextcloud hochladen";
uploadButton.Location = new Point(420, 322);
uploadButton.Location = new Point(420, 234);
uploadButton.Size = new Size(207, 30);
progressBar.Location = new Point(22, 365);
progressBar.Location = new Point(22, 277);
progressBar.Size = new Size(605, 15);
statusLabel.Text = "Bereit. Nach erfolgreichem Upload den ESP per Reset neu starten.";
statusLabel.Location = new Point(22, 390);
statusLabel.Location = new Point(22, 302);
statusLabel.Size = new Size(605, 28);
statusLabel.AutoEllipsis = true;
remoteHeading.Text = "Programme in Nextcloud";
remoteHeading.Font = new Font("Segoe UI", 12, FontStyle.Bold);
remoteHeading.AutoSize = true;
remoteHeading.Location = new Point(22, 432);
remoteHeading.Location = new Point(22, 344);
refreshButton.Text = "Aktualisieren";
refreshButton.Location = new Point(522, 430);
refreshButton.Location = new Point(522, 342);
refreshButton.Size = new Size(105, 29);
remoteList.Location = new Point(22, 467);
remoteList.Size = new Size(605, 136);
remoteList.Location = new Point(22, 379);
remoteList.Size = new Size(605, 224);
remoteList.View = View.Details;
remoteList.FullRowSelect = true;
remoteList.GridLines = true;
@@ -346,18 +346,16 @@ namespace PlasmaTapUploader
{
int contentWidth = ClientSize.Width - 45;
int extraHeight = Math.Max(0, ClientSize.Height - 650);
int upperExtra = extraHeight / 2;
int lowerExtra = extraHeight - upperExtra;
hintLabel.Width = contentWidth;
fileList.SetBounds(22, 82, contentWidth, 228 + upperExtra);
chooseButton.Top = clearButton.Top = uploadButton.Top = 322 + upperExtra;
fileList.SetBounds(22, 82, contentWidth, 140);
chooseButton.Top = clearButton.Top = uploadButton.Top = 234;
uploadButton.Left = ClientSize.Width - 23 - uploadButton.Width;
progressBar.SetBounds(22, 365 + upperExtra, contentWidth, 15);
statusLabel.SetBounds(22, 390 + upperExtra, contentWidth, 28);
refreshButton.SetBounds(ClientSize.Width - 23 - refreshButton.Width, 430 + upperExtra, 105, 29);
remoteHeading.Top = 432 + upperExtra;
remoteList.SetBounds(22, 467 + upperExtra, contentWidth, 136 + lowerExtra);
progressBar.SetBounds(22, 277, contentWidth, 15);
statusLabel.SetBounds(22, 302, contentWidth, 28);
refreshButton.SetBounds(ClientSize.Width - 23 - refreshButton.Width, 342, 105, 29);
remoteHeading.Top = 344;
remoteList.SetBounds(22, 379, contentWidth, 224 + extraHeight);
remoteList.Columns[0].Width = Math.Max(355, contentWidth - 250);
remoteStatus.SetBounds(22, 612 + extraHeight, contentWidth, 25);
}