hytos / DTI_PID / SPPIDConverter / SPPIDModel / GridSetting.cs @ 5761879d
이력 | 보기 | 이력해설 | 다운로드 (786 Bytes)
1 | 06b40010 | gaqhf | 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 | 5761879d | gaqhf | public int MinSymbolGridCellCount { get; set; } |
20 | public int DrainValveCellCount { get; set; } |
||
21 | 06b40010 | gaqhf | |
22 | public static GridSetting GetInstance() |
||
23 | { |
||
24 | if (setting == null) |
||
25 | setting = new GridSetting(); |
||
26 | |||
27 | return setting; |
||
28 | } |
||
29 | |||
30 | public static void Clear() |
||
31 | { |
||
32 | setting = new GridSetting(); |
||
33 | } |
||
34 | } |
||
35 | } |