Infört en möjlighet att rensa transtabellen

This commit is contained in:
2024-02-01 11:44:45 +01:00
parent ef14ce2aaa
commit 05dfd1f35b
6 changed files with 117 additions and 22 deletions

View File

@ -35,15 +35,16 @@
btnSearchPayments = new Button();
btnClose = new Button();
btnEdit = new Button();
btnClearRecords = new Button();
SuspendLayout();
//
// helloText
//
helloText.AutoSize = true;
helloText.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point);
helloText.Location = new Point(12, 9);
helloText.Location = new Point(14, 12);
helloText.Name = "helloText";
helloText.Size = new Size(45, 19);
helloText.Size = new Size(52, 23);
helloText.TabIndex = 0;
helloText.Text = "------";
//
@ -51,17 +52,18 @@
//
goodbyeText.AutoSize = true;
goodbyeText.Font = new Font("Segoe UI", 10F, FontStyle.Regular, GraphicsUnit.Point);
goodbyeText.Location = new Point(12, 422);
goodbyeText.Location = new Point(14, 563);
goodbyeText.Name = "goodbyeText";
goodbyeText.Size = new Size(45, 19);
goodbyeText.Size = new Size(52, 23);
goodbyeText.TabIndex = 1;
goodbyeText.Text = "------";
//
// btnCheckPayments
//
btnCheckPayments.Location = new Point(75, 70);
btnCheckPayments.Location = new Point(86, 93);
btnCheckPayments.Margin = new Padding(3, 4, 3, 4);
btnCheckPayments.Name = "btnCheckPayments";
btnCheckPayments.Size = new Size(156, 23);
btnCheckPayments.Size = new Size(178, 31);
btnCheckPayments.TabIndex = 2;
btnCheckPayments.Text = "Kontrollera Betalningar";
btnCheckPayments.UseVisualStyleBackColor = true;
@ -69,9 +71,10 @@
//
// btnLoadPayments
//
btnLoadPayments.Location = new Point(75, 41);
btnLoadPayments.Location = new Point(86, 55);
btnLoadPayments.Margin = new Padding(3, 4, 3, 4);
btnLoadPayments.Name = "btnLoadPayments";
btnLoadPayments.Size = new Size(156, 23);
btnLoadPayments.Size = new Size(178, 31);
btnLoadPayments.TabIndex = 3;
btnLoadPayments.Text = "Ladda betalningar";
btnLoadPayments.UseVisualStyleBackColor = true;
@ -79,9 +82,10 @@
//
// btnSearchPayments
//
btnSearchPayments.Location = new Point(75, 99);
btnSearchPayments.Location = new Point(86, 132);
btnSearchPayments.Margin = new Padding(3, 4, 3, 4);
btnSearchPayments.Name = "btnSearchPayments";
btnSearchPayments.Size = new Size(156, 23);
btnSearchPayments.Size = new Size(178, 31);
btnSearchPayments.TabIndex = 4;
btnSearchPayments.Text = "Sök betalningar";
btnSearchPayments.UseVisualStyleBackColor = true;
@ -89,9 +93,10 @@
//
// btnClose
//
btnClose.Location = new Point(713, 420);
btnClose.Location = new Point(815, 560);
btnClose.Margin = new Padding(3, 4, 3, 4);
btnClose.Name = "btnClose";
btnClose.Size = new Size(75, 23);
btnClose.Size = new Size(86, 31);
btnClose.TabIndex = 5;
btnClose.Text = "Stäng";
btnClose.UseVisualStyleBackColor = true;
@ -99,19 +104,31 @@
//
// btnEdit
//
btnEdit.Location = new Point(75, 128);
btnEdit.Location = new Point(86, 171);
btnEdit.Margin = new Padding(3, 4, 3, 4);
btnEdit.Name = "btnEdit";
btnEdit.Size = new Size(156, 23);
btnEdit.Size = new Size(178, 31);
btnEdit.TabIndex = 6;
btnEdit.Text = "Justera/Addera betalning";
btnEdit.UseVisualStyleBackColor = true;
btnEdit.Click += btnEdit_Click;
//
// btnClearRecords
//
btnClearRecords.Location = new Point(91, 211);
btnClearRecords.Name = "btnClearRecords";
btnClearRecords.Size = new Size(173, 29);
btnClearRecords.TabIndex = 7;
btnClearRecords.Text = "Töm databasen";
btnClearRecords.UseVisualStyleBackColor = true;
btnClearRecords.Click += btnClearRecords_Click;
//
// MainWindow
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(800, 450);
ClientSize = new Size(914, 600);
Controls.Add(btnClearRecords);
Controls.Add(btnEdit);
Controls.Add(btnClose);
Controls.Add(btnSearchPayments);
@ -119,6 +136,7 @@
Controls.Add(btnCheckPayments);
Controls.Add(goodbyeText);
Controls.Add(helloText);
Margin = new Padding(3, 4, 3, 4);
Name = "MainWindow";
StartPosition = FormStartPosition.CenterScreen;
Text = "MainWindow";
@ -137,5 +155,6 @@
private Button btnSearchPayments;
private Button btnClose;
private Button btnEdit;
private Button btnClearRecords;
}
}