-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathAdvancedSettingsForm.cs
46 lines (38 loc) · 1.23 KB
/
AdvancedSettingsForm.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
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace BrickadiaAutoPainter {
public enum ColorSpaceSetting {
sRGB,
Oklab
}
public enum SkipColorsSetting {
None,
MostFrequent,
Transparent,
DeleteMostFrequent
}
public partial class AdvancedSettingsForm : Form {
public int ColorSwitchDelay => (int)boxColorSwitchDelay.Value;
public int ColorSwitchedDelay => (int)boxColorSwitchedDelay.Value;
public int PixelPaintDelay => (int)boxPixelPaintDelay.Value;
public ColorSpaceSetting ColorSpace => (ColorSpaceSetting)Enum.Parse(typeof(ColorSpaceSetting), dropdownColorSpace.Text);
public SkipColorsSetting SkipColors => (SkipColorsSetting)Enum.GetValues(typeof(SkipColorsSetting)).GetValue(dropdownSkipColors.SelectedIndex);
public AdvancedSettingsForm() {
InitializeComponent();
dropdownColorSpace.SelectedIndex = 0;
dropdownSkipColors.SelectedIndex = 0;
}
private void AdvancedSettingsForm_Load(object sender, EventArgs e) {
}
private void okButton_Click(object sender, EventArgs e) {
Hide();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e) {
}
}
}