Ejemplo n.º 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;
        }
Ejemplo n.º 2
0
        void g_DoubleClick(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            if (grid.SelectedRows.Count != 1)
            {
                return;
            }

            var x = grid.SelectedRows[0].DataBoundItem as ValidatePsdFileVM;

            var dlg = new FrmValidatePsdFile();

            dlg.Setup(x, false);
            dlg.Show(this);
        }
Ejemplo n.º 3
0
        private void grid_DoubleClick(object sender, EventArgs e)
        {
            //throw new NotImplementedException();
            if (grid.SelectedRows.Count != 1)
            {
                return;
            }

            var selectRow = grid.SelectedRows[0].DataBoundItem as DataRowView;
            var copyVm    = new ValidatePsdFileVM();

            CopyProperties(selectRow, copyVm);

            var dlg = new FrmValidatePsdFile();

            dlg.Setup(copyVm, false);
            dlg.Show(this);
        }
Ejemplo n.º 4
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;
        }