개정판 dcc491e9
Fix: 비교할 때 AutoCAD를 좌표 이동할지 여부를 옵션 처리
Change-Id: I5449e9c4a6f50781ba0f170313bbef9e7427aea1
ID2.Manager/ID2.Manager.Compare/Controls/Verification.cs | ||
---|---|---|
51 | 51 |
private static bool Casesensitive { get; set; } = false; |
52 | 52 |
|
53 | 53 |
private static bool OriginalColor{ get; set; } = false; |
54 |
private static bool TranslateAutoCAD { get; set; } = true; |
|
54 | 55 |
#endregion |
55 | 56 |
|
56 | 57 |
private RadProgressBarElement _progressBar = null; |
... | ... | |
88 | 89 |
this.radCheckBoxRevCloud.CheckStateChanged += RadCheckBoxRevCloud_CheckStateChanged; |
89 | 90 |
this.radToggleSwitchCasesensitive.ValueChanged += RadToggleSwitchCasesensitive_ValueChanged; |
90 | 91 |
this.radToggleSwitchOriginalColor.ValueChanged += RadToggleSwitchOriginalColor_ValueChanged; |
92 |
this.radCheckBoxTranslateAutoCAD.CheckStateChanged += RadCheckBoxTranslateAutoCAD_CheckStateChanged; |
|
91 | 93 |
|
92 | 94 |
_progressBar = progressBar; |
93 | 95 |
|
... | ... | |
114 | 116 |
#endregion |
115 | 117 |
} |
116 | 118 |
|
119 |
private void RadCheckBoxTranslateAutoCAD_CheckStateChanged(object sender, EventArgs e) |
|
120 |
{ |
|
121 |
bool value = this.radCheckBoxTranslateAutoCAD.Checked; |
|
122 |
Verification.TranslateAutoCAD = value; |
|
123 |
Classes.ID2Helper.IniWriteValue(IniFilePath, "Verification", "AutoCAD Translate", value.ToString()); |
|
124 |
} |
|
125 |
|
|
117 | 126 |
private void RadToggleSwitchOriginalColor_ValueChanged(object sender, EventArgs e) |
118 | 127 |
{ |
119 | 128 |
bool value = this.radToggleSwitchOriginalColor.Value; |
... | ... | |
427 | 436 |
string _OriginalColor = Classes.ID2Helper.IniReadValue(IniFilePath, "Verification", "AutoCAD Original Color"); |
428 | 437 |
if (!string.IsNullOrEmpty(_OriginalColor)) |
429 | 438 |
{ |
430 |
OriginalColor = Convert.ToBoolean(OriginalColor); |
|
439 |
OriginalColor = Convert.ToBoolean(_OriginalColor); |
|
440 |
this.radToggleSwitchOriginalColor.Value = OriginalColor; |
|
441 |
} |
|
442 |
|
|
443 |
string _TranslateAutoCAD = Classes.ID2Helper.IniReadValue(IniFilePath, "Verification", "AutoCAD Translate"); |
|
444 |
if (!string.IsNullOrEmpty(_TranslateAutoCAD)) |
|
445 |
{ |
|
446 |
TranslateAutoCAD = Convert.ToBoolean(_TranslateAutoCAD); |
|
447 |
this.radCheckBoxTranslateAutoCAD.Checked = TranslateAutoCAD; |
|
431 | 448 |
} |
432 | 449 |
|
433 | 450 |
#region Except Layer를 로딩한다. |
... | ... | |
770 | 787 |
if (!ra.Layers.Contains(Verification.AutoCADExceptLayer)) ra.Layers.Add(Verification.AutoCADExceptLayer, Verification.AutoCADColor); |
771 | 788 |
foreach (var ent in ra.Entities) |
772 | 789 |
{ |
773 |
/// 도면을 원점으로 맞춘다. |
|
774 |
if (min.X != 0 && min.Y != 0) ent.Translate(-min.X, -min.Y); |
|
790 |
if (TranslateAutoCAD) |
|
791 |
{ |
|
792 |
#region 도면을 원점으로 맞춘다. |
|
793 |
if (min.X != 0 && min.Y != 0) ent.Translate(-min.X, -min.Y); |
|
794 |
#endregion |
|
795 |
} |
|
775 | 796 |
|
776 | 797 |
if (ent is BlockReference blkref) |
777 | 798 |
{ |
내보내기 Unified diff