-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFormBattleResultDetail.cs
52 lines (42 loc) · 1.51 KB
/
FormBattleResultDetail.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using KCB;
namespace KCB2
{
public partial class FormBattleResultDetail : Form
{
public FormBattleResultDetail()
{
InitializeComponent();
}
public LogData.BattleResultInfo Info;
private void FormBattleResultDetail_Load(object sender, EventArgs e)
{
if (Info == null)
Close();
lvDetail.Items[0].SubItems[1].Text = Info.Friend.DeckName;
lvDetail.Items[0].SubItems[2].Text = Info.Foe.DeckName;
for (int i = 0; i < 6; i++)
{
lvDetail.Items[i + 1].SubItems[1].Text = Info.Friend.ShipList[i];
lvDetail.Items[i + 1].SubItems[2].Text = Info.Foe.ShipList[i];
}
if(!Properties.Settings.Default.BattleDetailBounds.IsEmpty)
Bounds = Properties.Settings.Default.BattleDetailBounds;
lvDetail.LoadColumnWithOrder(Properties.Settings.Default.BattleDetailColumnWidth);
}
private void FormBattleResultDetail_FormClosing(object sender, FormClosingEventArgs e)
{
WindowState = FormWindowState.Normal;
Properties.Settings.Default.BattleDetailBounds = Bounds;
Properties.Settings.Default.BattleDetailColumnWidth
= lvDetail.SaveColumnWithOrder();
}
}
}