프로젝트

일반

사용자정보

개정판 54be6611

ID54be661144fe2cc8a8497de7b2b9ae046e1f8a77
상위 7a16f1f8
하위 353b7f9f

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

Fix: 유사도 리스트 목록 동기화

Change-Id: Id12ee063f2ed00fae961e088ce9188f2c9dd7a12

차이점 보기:

ID2.Manager/ID2.Manager.Compare/Main.cs
109 109
                this.radBrowseEditorAVEVAFolder.ValueChanged += RadBrowseEditorAVEVAFolder_ValueChanged;
110 110
                this.radGridViewDocument.DataBindingComplete += RadGridViewDocument_DataBindingComplete;
111 111
                this.radGridViewDocument.ViewRowFormatting += RadGridViewDocument_ViewRowFormatting;
112
                this.radGridViewDocument.CellClick += RadGridViewDocument_CellClick;
113 112
                this.radButtonElementCompare.Click += RadButtonElementCompare_Click;
114 113
                this.radButtonElementConfiguration.Click += RadButtonElementConfiguration_Click;
115 114

  
......
120 119

  
121 120
                Program.AVEVAPIDFolder = Classes.ID2Helper.IniReadValue(Program.IniFilePath, "Path", "AVEVA P&ID Folder");
122 121
                if (!string.IsNullOrEmpty(Program.AVEVAPIDFolder)) this.radBrowseEditorAVEVAFolder.Value = Program.AVEVAPIDFolder;
122

  
123
                this.radGridViewDocument.SelectionChanged += RadGridViewDocument_SelectionChanged;
123 124
            }
124 125
            catch (Exception ex)
125 126
            {
......
130 131
            base.OnLoad(e);
131 132
        }
132 133

  
134
        private void RadGridViewDocument_SelectionChanged(object sender, EventArgs e)
135
        {
136
            if (this.radGridViewDocument.SelectedRows.Any() && this.radGridViewDocument.SelectedRows[0].DataBoundItem is Document doc)
137
            {
138
                this.Cursor = Cursors.WaitCursor;
139
                try
140
                {
141
                    var verification = this.LayoutValidation.Controls[0] as Controls.Verification;
142
                    verification.CompareDrawings(new List<Document>() { doc });
143
                }
144
                finally
145
                {
146
                    this.Cursor = Cursors.Default;
147
                }
148
            }
149
        }
150

  
133 151
        /// <summary>
134 152
        /// 도면 리스트를 갱신한다.
135 153
        /// </summary>
......
198 216
            }
199 217
        }
200 218

  
201
        private void RadGridViewDocument_CellClick(object sender, GridViewCellEventArgs e)
202
        {
203
            if (e.RowIndex >= 0 && (e.ColumnIndex == 1 || e.ColumnIndex == 2))
204
            {
205
                if (this.radGridViewDocument.SelectedRows.Any() && this.radGridViewDocument.SelectedRows[0].DataBoundItem is Document doc)
206
                {
207
                    this.Cursor = Cursors.WaitCursor;
208
                    try
209
                    {
210
                        var verification = this.LayoutValidation.Controls[0] as Controls.Verification;
211
                        verification.CompareDrawings(new List<Document>() { doc });
212
                    }
213
                    finally
214
                    {
215
                        this.Cursor = Cursors.Default;
216
                    }
217
                }
218
            }
219
        }
220

  
221 219
        private void RadGridViewDocument_ViewRowFormatting(object sender, RowFormattingEventArgs e)
222 220
        {
223 221
            if(e.RowElement is GridRowElement)

내보내기 Unified diff

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