hytos / DTI_PID / SPPIDConverter / SPPIDModel / GridSetting.cs @ 06b40010
이력 | 보기 | 이력해설 | 다운로드 (677 Bytes)
1 |
using System; |
---|---|
2 |
using System.Collections.Generic; |
3 |
using System.Linq; |
4 |
using System.Text; |
5 |
using System.Threading.Tasks; |
6 |
|
7 |
namespace Converter.SPPID |
8 |
{ |
9 |
enum GridUnit |
10 |
{ |
11 |
Inch |
12 |
} |
13 |
class GridSetting |
14 |
{ |
15 |
private static GridSetting setting; |
16 |
public bool UseSnapGrid { get; set; } |
17 |
public double Density { get; set; } |
18 |
public GridUnit Unit { get; set; } |
19 |
|
20 |
public static GridSetting GetInstance() |
21 |
{ |
22 |
if (setting == null) |
23 |
setting = new GridSetting(); |
24 |
|
25 |
return setting; |
26 |
} |
27 |
|
28 |
public static void Clear() |
29 |
{ |
30 |
setting = new GridSetting(); |
31 |
} |
32 |
} |
33 |
} |