blob: f9e57551f00f8429a75a2392f9b8b20973ea4b87 (
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
42
43
44
|
using Newtonsoft.Json;
using System;
namespace grapher.Models.Serialized
{
[Serializable]
public class GUISettings
{
#region Constructors
public GUISettings() {}
#endregion Constructors
#region Properties
[JsonProperty(Order = 1)]
public int DPI { get; set; }
[JsonProperty(Order = 2)]
public int PollRate { get; set; }
[JsonProperty(Order = 3)]
public bool ShowLastMouseMove { get; set; }
[JsonProperty(Order = 4)]
public bool ShowVelocityAndGain { get; set; }
#endregion Properties
#region Methods
public bool ValueEquals(GUISettings other)
{
return DPI == other.DPI &&
PollRate == other.PollRate &&
ShowLastMouseMove == other.ShowLastMouseMove &&
ShowVelocityAndGain == other.ShowVelocityAndGain;
}
#endregion Methods
}
}
|