-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSettingsForm.cs
More file actions
31 lines (28 loc) · 805 Bytes
/
SettingsForm.cs
File metadata and controls
31 lines (28 loc) · 805 Bytes
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
using NeoFlyExport.Properties;
using System;
using System.Windows.Forms;
namespace NeoFlyExport
{
public partial class SettingsForm : Form
{
public SettingsForm()
{
InitializeComponent();
}
private void SettingsForm_Shown(object sender, EventArgs e)
{
txtExternalViewers.Lines = Settings.Default.ExternalViewers.ToArray();
}
private void btnOK_Click(object sender, EventArgs e)
{
Settings.Default.ExternalViewers.Clear();
foreach (string line in txtExternalViewers.Lines)
{
if (!string.IsNullOrWhiteSpace(line))
{
Settings.Default.ExternalViewers.Add(line.Trim());
}
}
}
}
}