개정판 353b7f9f
Feature: 1. 검수할때 대소문자 비교 옵션, 캐드 특수 문자 처리 옵션 추가
2. 유사도 평가시 메인 화면에서 선택한 도면 목록을 가져오는 기능 추가
Change-Id: I6a5fb94067fe5b72ac89caa887da9eaaf4d635a6
ID2.Manager/ID2.Manager.Compare/Forms/ExceptLayer.cs | ||
---|---|---|
27 | 27 |
public string Name { get; set; } = string.Empty; |
28 | 28 |
public bool Visible { get; set; } = false; |
29 | 29 |
} |
30 |
public class SpecialCharacter |
|
31 |
{ |
|
32 |
public SpecialCharacter() { } |
|
33 |
public SpecialCharacter(string _Special, string _Normal) |
|
34 |
{ |
|
35 |
Special = _Special; |
|
36 |
Normal = _Normal; |
|
37 |
} |
|
38 |
|
|
39 |
public string Special { get; set; } |
|
40 |
public string Normal { get; set; } |
|
41 |
} |
|
30 | 42 |
|
31 | 43 |
public static List<Layer> ExceptLayers { get; } = new List<Layer>(); |
32 | 44 |
public static List<Layer> LineLayers { get; } = new List<Layer>(); |
45 |
public static List<SpecialCharacter> SpecialCharacters{ get; } = new List<SpecialCharacter>(); |
|
33 | 46 |
public static double LengthToleranceRatio = 0.1; |
34 | 47 |
public static double ArrowMaxLength { get; set; } = 2; |
35 | 48 |
private BindingList<Layer> _ExceptLayerBindings { get; } = new BindingList<Layer>(); |
36 | 49 |
private BindingList<Layer> _LineLayerBindings { get; } = new BindingList<Layer>(); |
50 |
private BindingList<SpecialCharacter> _SpecialCharacterBindings { get; } = new BindingList<SpecialCharacter>(); |
|
37 | 51 |
|
38 | 52 |
public ExceptLayer() |
39 | 53 |
{ |
40 | 54 |
InitializeComponent(); |
41 | 55 |
|
56 |
#region BindingList에 담음 |
|
42 | 57 |
ExceptLayers.ForEach(x => _ExceptLayerBindings.Add(x)); |
43 | 58 |
LineLayers.ForEach(x => _LineLayerBindings.Add(x)); |
59 |
SpecialCharacters.ForEach(x => _SpecialCharacterBindings.Add(x)); |
|
60 |
#endregion |
|
44 | 61 |
|
45 | 62 |
this.radGridViewExceptLayer.DataBindingComplete += RadGridViewExceptLayer_DataBindingComplete; |
46 | 63 |
this.radGridViewExceptLayer.DataSource = _ExceptLayerBindings; |
... | ... | |
51 | 68 |
this.radSpinEditorLengthToleranceRatio.Value = Convert.ToDecimal(LengthToleranceRatio); |
52 | 69 |
this.radSpinEditorArrowMaxLength.Value = Convert.ToDecimal(ArrowMaxLength); |
53 | 70 |
|
71 |
this.radGridViewSpecialCharacter.DataBindingComplete += RadGridViewSpecialCharacter_DataBindingComplete; |
|
72 |
this.radGridViewSpecialCharacter.DataSource = _SpecialCharacterBindings; |
|
73 |
|
|
54 | 74 |
this.radButtonOK.Click += RadButtonOK_Click; |
55 | 75 |
this.radButtonCancel.Click += RadButtonCancel_Click; |
56 | 76 |
} |
57 | 77 |
|
78 |
private void RadGridViewSpecialCharacter_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e) |
|
79 |
{ |
|
80 |
radGridViewSpecialCharacter.BestFitColumns(); |
|
81 |
} |
|
82 |
|
|
58 | 83 |
private void RadGridViewExceptLayer_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e) |
59 | 84 |
{ |
60 | 85 |
radGridViewExceptLayer.BestFitColumns(); |
... | ... | |
73 | 98 |
LineLayers.Clear(); |
74 | 99 |
LineLayers.AddRange(_LineLayerBindings); |
75 | 100 |
|
101 |
SpecialCharacters.Clear(); |
|
102 |
SpecialCharacters.AddRange(_SpecialCharacterBindings); |
|
103 |
|
|
76 | 104 |
LengthToleranceRatio = Convert.ToDouble(this.radSpinEditorLengthToleranceRatio.Value); |
77 | 105 |
ArrowMaxLength = Convert.ToDouble(this.radSpinEditorArrowMaxLength.Value); |
78 | 106 |
|
내보내기 Unified diff