blob: 7c8e9a4f7b1a35e934fd83d38dd1d555481c5a6b (
plain) (
blame)
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
|
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace grapher.Models.Serialized
{
[Serializable]
public class GUISettings
{
public GUISettings() {}
public GUISettings(bool autoWrite, int dpi, int pollRate)
{
AutoWriteToDriverOnStartup = autoWrite;
DPI = dpi;
PollRate = pollRate;
}
[JsonProperty(Order = 1)]
public bool AutoWriteToDriverOnStartup { get; set; }
[JsonProperty(Order = 2)]
public int DPI { get; set; }
[JsonProperty(Order = 3)]
public int PollRate { get; set; }
}
}
|