프로젝트

일반

사용자정보

개정판 288ed615

ID288ed6157dd8881fd046be76da3ddbb74b263a0a
상위 ad8b7f7f
하위 d72eff7a

백흠경이(가) 일년 이상 전에 추가함

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

클립보드 이미지 추가 (최대 크기: 500 MB)