コード例 #1
0
        // 검증 버튼 클릭 이벤트
        private void btnValidate_Click(object sender, EventArgs e)
        {
            // 검증 버튼 클릭 시 row의 데이터를 가져와서 비교하는 로직
            foreach (var row in grid.Rows.OfType <DataGridViewRow>())
            {
                Console.WriteLine("#############");
                Console.WriteLine(row);

                // 개별 파일 검증 class를 생성???
                var dlg = new FrmValidatePsdFile();
                // 2020-02-27 FrmValidatePsdFile 분석 시작
                // row.Selected = true;
                grid.CurrentCell = row.Cells[0];

                var x = row.DataBoundItem as ValidatePsdFileVM;
                if (x.ILS_Type == null)
                {
                    continue;
                }

                dlg.Setup(x);
                dlg.ShowDialog();
            }
            grid.CurrentCell = null;
        }
コード例 #2
0
        private void GetLayerList(int idx)
        {
            var folderPath      = txtPath.Text;
            var isFilterByArrow = chboxFilterByArrow.Checked;

            foreach (var row in grid.Rows.OfType <DataGridViewRow>())
            {
                var dlg = new FrmValidatePsdFile();
                grid.CurrentCell = row.Cells[0];

                var item = row.DataBoundItem as ValidatePsdFileVM;
                if (item.ILS_Type == null)
                {
                    continue;
                }

                dlg.Setup(item, folderPath, isFilterByArrow);
                dlg.ShowDialog();
            }
            grid.CurrentCell = null;
        }