-
Notifications
You must be signed in to change notification settings - Fork 0
/
FormHallFame.cs
106 lines (84 loc) · 3.67 KB
/
FormHallFame.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
using System;
using System.Drawing;
using System.Windows.Forms;
using memory_game.Properties;
namespace memory_game
{
public partial class FormHallFame : Form
{
private Top10 _top10;
public FormHallFame(FormMain parentForm)
{
InitializeComponent();
_top10 = new Top10(parentForm.Config);
}
/// <summary>
/// TODO: potrebno napisati kak spada...
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
private void frmHallFame_Load(object sender, EventArgs e)
{
listView1.SmallImageList = new ImageList();
listView1.SmallImageList.ImageSize = new Size(32, 32);
listView1.SmallImageList.ColorDepth = ColorDepth.Depth32Bit;
listView1.SmallImageList.Images.Add(Resources.smiley_win);
listView1.SmallImageList.Images.Add(Resources.smiley_match);
var font1 = new Font(Font.FontFamily, 15, FontStyle.Bold);
var font2 = new Font(Font.FontFamily, 9, FontStyle.Bold);
//listView1.Items.Clear();
//string[][] entries = top10.getEntries();
//for (int k = 0; k < 10; k++)
//{
// ListViewItem item = new ListViewItem();
// string[] data = entries[k];
// item.Text = " "+(k+1)+".";
// item.ImageIndex = 0;
// item.Font = font_2;
// item.Group = listView1.Groups[0];
// item.BackColor = Color.White;
// ListViewItem.ListViewSubItem c_name = new ListViewItem.ListViewSubItem();
// c_name.Text = data[0];
// c_name.Font = font_1;
// item.SubItems.Add(c_name);
// ListViewItem.ListViewSubItem c_score = new ListViewItem.ListViewSubItem();
// c_score.Text = data[1];
// c_score.Font = font_2;
// item.SubItems.Add(c_score);
// ListViewItem.ListViewSubItem c_time = new ListViewItem.ListViewSubItem();
// c_time.Text = data[2];
// c_time.Font = font_2;
// item.SubItems.Add(c_time);
// ListViewItem.ListViewSubItem c_difficulty = new ListViewItem.ListViewSubItem();
// c_difficulty.Text = data[3];
// c_difficulty.Font = font_2;
// item.SubItems.Add(c_difficulty);
// this.listView1.Items.Add(item);
//}
//// YOUR SCORE PART
//ListViewItem yItem = new ListViewItem();
//yItem.Text = "";
//yItem.ImageIndex = 1;
//yItem.Font = font_2;
//yItem.Group = listView1.Groups[1];
//yItem.BackColor = Color.Beige;
//ListViewItem.ListViewSubItem y_name = new ListViewItem.ListViewSubItem();
//y_name.Text = "Andrej Vitez";
//y_name.Font = font_1;
//yItem.SubItems.Add(y_name);
//ListViewItem.ListViewSubItem y_score = new ListViewItem.ListViewSubItem();
//y_score.Text = "234";
//y_score.Font = font_2;
//yItem.SubItems.Add(y_score);
//ListViewItem.ListViewSubItem y_time = new ListViewItem.ListViewSubItem();
//y_time.Text = "03:45";
//y_time.Font = font_2;
//yItem.SubItems.Add(y_time);
//ListViewItem.ListViewSubItem y_difficulty = new ListViewItem.ListViewSubItem();
//y_difficulty.Text = "6x6";
//y_difficulty.Font = font_2;
//yItem.SubItems.Add(y_difficulty);
//this.listView1.Items.Add(yItem);
}
}
}