blob: 253e71da4bb594fc3bb5ed20526474e6f42364f8 (
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
34
35
36
37
38
39
40
41
|
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
{
#region Constructors
public GUISettings() {}
public GUISettings(bool autoWrite, int dpi, int pollRate)
{
AutoWriteToDriverOnStartup = autoWrite;
DPI = dpi;
PollRate = pollRate;
}
#endregion Constructors
#region Properties
[JsonProperty(Order = 1)]
public bool AutoWriteToDriverOnStartup { get; set; }
[JsonProperty(Order = 2)]
public int DPI { get; set; }
[JsonProperty(Order = 3)]
public int PollRate { get; set; }
#endregion Properties
}
}
|