개정판 32acdfb1
Fix: Classify 설정창이 나타나지 않는 오류 수정
Change-Id: I48017ca65e1a642c2eddefadcb0258c9f365e986
ID2.Manager/ID2.Manager/Controls/Classify.cs | ||
---|---|---|
321 | 321 |
string ExceptLayersVisible = string.Join(",", Forms.ExceptLayer.ExceptLayers.Select(x => x.Visible)); |
322 | 322 |
Classes.ID2Helper.IniWriteValue(IniFilePath, "Verification", "Except Layers Visible", ExceptLayersVisible); |
323 | 323 |
|
324 |
string BlockName = Forms.ExceptLayer.TitleBlockAttribute.Select(x => x.BlockName).Distinct().First(); |
|
325 |
Classes.ID2Helper.IniWriteValue(IniFilePath, "TitleBlock", "Block Name", BlockName); |
|
324 |
if (Forms.ExceptLayer.TitleBlockAttribute.Any()) |
|
325 |
{ |
|
326 |
string BlockName = Forms.ExceptLayer.TitleBlockAttribute.Select(x => x.BlockName).Distinct().First(); |
|
327 |
Classes.ID2Helper.IniWriteValue(IniFilePath, "TitleBlock", "Block Name", BlockName); |
|
328 |
} |
|
326 | 329 |
var AttrNameList = Forms.ExceptLayer.TitleBlockAttribute.Select(x => x.AttrName).Distinct().ToList(); |
327 | 330 |
string Attributes = string.Join(",", AttrNameList); |
328 | 331 |
Classes.ID2Helper.IniWriteValue(IniFilePath, "TitleBlock", "Attributes", Attributes); |
ID2.Manager/ID2.Manager/Forms/ExceptLayer.cs | ||
---|---|---|
48 | 48 |
public static List<Layer> ExceptLayers { get; } = new List<Layer>(); |
49 | 49 |
private BindingList<Layer> _Bindings { get; } = new BindingList<Layer>(); |
50 | 50 |
|
51 |
private string BlockName { get; set; } |
|
51 |
private string BlockName { get; set; } = string.Empty;
|
|
52 | 52 |
public static List<BlockAttribute> TitleBlockAttribute { get; } = new List<BlockAttribute>(); |
53 | 53 |
private BindingList<BlockAttribute> _TitleBlockAttribute { get; } = new BindingList<BlockAttribute>(); |
54 | 54 |
|
... | ... | |
60 | 60 |
this.radGridViewExceptLayer.DataBindingComplete += RadGridViewExceptLayer_DataBindingComplete; |
61 | 61 |
this.radGridViewExceptLayer.DataSource = _Bindings; |
62 | 62 |
|
63 |
this.BlockName = TitleBlockAttribute.Select(x => x.BlockName).Distinct().First(); |
|
63 |
if(TitleBlockAttribute.Any()) this.BlockName = TitleBlockAttribute.Select(x => x.BlockName).Distinct().First();
|
|
64 | 64 |
this.radTextBoxBlockName.Text = this.BlockName; |
65 | 65 |
TitleBlockAttribute.ForEach(x => _TitleBlockAttribute.Add(x)); |
66 | 66 |
this.radGridViewAttributes.DataBindingComplete += RadGridViewAttributes_DataBindingComplete; |
내보내기 Unified diff