개정판 288ed615
Feature: 도면을 원점으로 이동시켜 비교, Compare 도면의 배경색을 검은색으로 변경
Change-Id: I1d41795c36b3c916a8039a3391151412b5476dab
ID2.Manager/ID2.Manager.Compare/Forms/ExceptLayer.cs | ||
---|---|---|
29 | 29 |
} |
30 | 30 |
|
31 | 31 |
public static List<Layer> ExceptLayers { get; } = new List<Layer>(); |
32 |
private BindingList<Layer> _Bindings { get; } = new BindingList<Layer>(); |
|
32 |
public static List<Layer> LineLayers { get; } = new List<Layer>(); |
|
33 |
private BindingList<Layer> _ExceptLayerBindings { get; } = new BindingList<Layer>(); |
|
34 |
private BindingList<Layer> _LineLayerBindings { get; } = new BindingList<Layer>(); |
|
33 | 35 |
|
34 | 36 |
public ExceptLayer() |
35 | 37 |
{ |
36 | 38 |
InitializeComponent(); |
37 | 39 |
|
38 |
ExceptLayers.ForEach(x => _Bindings.Add(x)); |
|
40 |
ExceptLayers.ForEach(x => _ExceptLayerBindings.Add(x)); |
|
41 |
LineLayers.ForEach(x => _LineLayerBindings.Add(x)); |
|
42 |
|
|
39 | 43 |
this.radGridViewExceptLayer.DataBindingComplete += RadGridViewExceptLayer_DataBindingComplete; |
40 |
this.radGridViewExceptLayer.DataSource = _Bindings; |
|
44 |
this.radGridViewExceptLayer.DataSource = _ExceptLayerBindings; |
|
45 |
|
|
46 |
this.radGridViewLineLayer.DataBindingComplete += RadGridViewLineLayer_DataBindingComplete; |
|
47 |
this.radGridViewLineLayer.DataSource = _LineLayerBindings; |
|
41 | 48 |
|
42 | 49 |
this.radButtonOK.Click += RadButtonOK_Click; |
43 | 50 |
this.radButtonCancel.Click += RadButtonCancel_Click; |
... | ... | |
48 | 55 |
radGridViewExceptLayer.BestFitColumns(); |
49 | 56 |
} |
50 | 57 |
|
58 |
private void RadGridViewLineLayer_DataBindingComplete(object sender, GridViewBindingCompleteEventArgs e) |
|
59 |
{ |
|
60 |
radGridViewLineLayer.BestFitColumns(); |
|
61 |
} |
|
62 |
|
|
51 | 63 |
private void RadButtonOK_Click(object sender, EventArgs e) |
52 | 64 |
{ |
53 | 65 |
ExceptLayers.Clear(); |
54 |
ExceptLayers.AddRange(_Bindings); |
|
66 |
ExceptLayers.AddRange(_ExceptLayerBindings); |
|
67 |
|
|
68 |
LineLayers.Clear(); |
|
69 |
LineLayers.AddRange(_LineLayerBindings); |
|
55 | 70 |
|
56 | 71 |
this.DialogResult = DialogResult.OK; |
57 | 72 |
} |
내보내기 Unified diff