forked from MarkusMaal/BlueScreenSimulatorPlus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathChooseFile.cs
41 lines (38 loc) · 1.17 KB
/
ChooseFile.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
using System;
using System.Windows.Forms;
namespace UltimateBlueScreenSimulator
{
public partial class ChooseFile : Form
{
public ChooseFile()
{
InitializeComponent();
}
private void Initialize(object sender, EventArgs e)
{
foreach (string line in Properties.Resources.CULPRIT_FILES.Split('\n'))
{
if (line.Contains(":"))
{
ListViewItem lvi = new ListViewItem
{
Text = line.Split(':')[0]
};
lvi.SubItems.Add(line.Split(':')[1]);
fileBrowser.Items.Add(lvi);
}
}
if (Program.f1.nightThemeToolStripMenuItem.Checked)
{
fileBrowser.BackColor = System.Drawing.Color.Black;
fileBrowser.ForeColor = System.Drawing.Color.Gray;
fileBrowser.GridLines = false;
}
}
private void WhenUserSelectsTheDesiredFile(object sender, EventArgs e)
{
this.DialogResult = DialogResult.OK;
this.Close();
}
}
}