Skip to content

Commit 361c9cb

Browse files
committed
Changed look of QueueForm to match others
1 parent aa44438 commit 361c9cb

7 files changed

Lines changed: 1740 additions & 73 deletions

File tree

-4.5 KB
Binary file not shown.

SingleBoostr/SingleBoostr/SingleBoostr/QueueForm.Designer.cs

Lines changed: 54 additions & 65 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

SingleBoostr/SingleBoostr/SingleBoostr/QueueForm.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ public partial class QueueForm : Form
1111
public List<App> AppList;
1212
private App _currentApp;
1313

14+
protected override void OnPaint(PaintEventArgs e)
15+
{
16+
base.OnPaint(e);
17+
18+
Rectangle rect = new Rectangle(new Point(0, 0), new Size(this.Width - 1, this.Height - 1));
19+
Pen pen = new Pen(Const.LABEL_HOVER);
20+
e.Graphics.DrawRectangle(pen, rect);
21+
}
22+
1423
protected override CreateParams CreateParams
1524
{
1625
get
@@ -39,9 +48,6 @@ private void QueueForm_Load(object sender, EventArgs e)
3948

4049
ListViewItem item = new ListViewItem();
4150
item.Text = $"{app.card.price.ToString("F")}$";
42-
var ts = TimeSpan.FromMinutes(app.card.minutesplayed);
43-
item.SubItems.Add($"{ts.Hours}:{ts.Minutes}");
44-
item.SubItems.Add(app.card.cardsremaining.ToString());
4551
item.SubItems.Add(Utils.Truncate(app.name, 35));
4652
lvApps.Items.Add(item);
4753
}

0 commit comments

Comments
 (0)