forked from VariantXYZ/PSO2ACT
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfig.cs
More file actions
executable file
·44 lines (38 loc) · 1.16 KB
/
config.cs
File metadata and controls
executable file
·44 lines (38 loc) · 1.16 KB
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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace PSO2ACT
{
public partial class config : UserControl
{
public string selectedFolder = string.Empty;
public volatile bool refreshFlag;
public config()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
FolderBrowserDialog dialog = new FolderBrowserDialog();
if (dialog.ShowDialog() == DialogResult.OK)
{
selectedFolder = dialog.SelectedPath;
if (!Directory.Exists(String.Format(@"{0}\damagelogs", selectedFolder)))
MessageBox.Show("Unable to find damagelog folder. Make sure the damage dump
39F4
plugin is enabled.");
directory.Text = selectedFolder;
}
refreshFlag = true;
}
private void button2_Click(object sender, EventArgs e)
{
refreshFlag = true;
}
}
}