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

@ -36,6 +36,7 @@
ch5_Förfallodag = new ColumnHeader();
ch6_Avisering = new ColumnHeader();
btnClose = new Button();
btnRensa = new Button();
SuspendLayout();
//
// lvPayments
@ -43,9 +44,10 @@
lvPayments.Anchor = AnchorStyles.Top | AnchorStyles.Bottom | AnchorStyles.Left | AnchorStyles.Right;
lvPayments.BackColor = Color.FromArgb(192, 255, 255);
lvPayments.Columns.AddRange(new ColumnHeader[] { ch1_Id, ch2_Mottagare, ch3_Konto, ch4_Belopp, ch5_Förfallodag, ch6_Avisering });
lvPayments.Location = new Point(28, 55);
lvPayments.Location = new Point(32, 73);
lvPayments.Margin = new Padding(3, 4, 3, 4);
lvPayments.Name = "lvPayments";
lvPayments.Size = new Size(805, 286);
lvPayments.Size = new Size(919, 380);
lvPayments.TabIndex = 0;
lvPayments.UseCompatibleStateImageBehavior = false;
lvPayments.View = View.Details;
@ -81,21 +83,35 @@
//
// btnClose
//
btnClose.Location = new Point(758, 418);
btnClose.Location = new Point(866, 557);
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 = 1;
btnClose.Text = "Stäng";
btnClose.UseVisualStyleBackColor = true;
btnClose.Click += btnClose_Click;
//
// btnRensa
//
btnRensa.Location = new Point(766, 559);
btnRensa.Name = "btnRensa";
btnRensa.Size = new Size(94, 29);
btnRensa.TabIndex = 2;
btnRensa.Text = "Rensa ";
btnRensa.UseVisualStyleBackColor = true;
btnRensa.Visible = false;
btnRensa.Click += btnRensa_Click;
//
// frmPayments
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleDimensions = new SizeF(8F, 20F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(856, 453);
ClientSize = new Size(978, 604);
Controls.Add(btnRensa);
Controls.Add(btnClose);
Controls.Add(lvPayments);
Margin = new Padding(3, 4, 3, 4);
Name = "frmPayments";
StartPosition = FormStartPosition.CenterScreen;
Text = "frmPayments";
@ -114,5 +130,6 @@
private ColumnHeader ch6_Avisering;
private Button btnClose;
private ColumnHeader ch5_Förfallodag;
private Button btnRensa;
}
}