Exemplo n.º 1
0
        public void Setup(ValidatePsdFileVM vm, string folderPath, bool isFilterByArrow, bool isAutoClose = true, bool isExportLayerList = true)
        {
            this._isAutoClose = isAutoClose;
            if (isExportLayerList)
            {
                this._isExportLayerList = isExportLayerList;
                this._exportFilePath    = folderPath;
                this._isFilterByArrow   = isFilterByArrow;
            }

            if (vm.ILS_Type == ILSType.Code1_NC)
            {
                rdoILSType1.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code2_JC)
            {
                rdoILSType2.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code3_CE)
            {
                rdoILSType3.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code4_ET)
            {
                rdoILSType4.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code5_MimeticDiagram)
            {
                rdoILSType5.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code6_CrossRoadPoint3D)
            {
                rdoILSType6.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code7_RestAreaSummaryMap_Mapy)
            {
                rdoILSType7.Checked = true;
            }
            if (vm.ILS_Type == ILSType.Code8_RestAreaSummaryMap_Gini)
            {
                rdoILSType8.Checked = true;
            }

            txtPsdFullPath.Text = vm.FileName;
            _validatePsdFileVM  = vm;
        }
Exemplo n.º 2
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);
        }
Exemplo n.º 3
0
 //internal void Setup(string ilsType, string fileName)
 internal void Setup(ValidatePsdFileVM vm, bool isAutoClose = true)
 {
     // internal이란 접근제한자 이해 필요, 멀티검증에서 사용하고 있는 메소드
     this._isAutoClose = isAutoClose;
     if (vm.ILS_Type == ILSType.Code1_NC)
     {
         rdoILSType1.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code2_JC)
     {
         rdoILSType2.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code3_CE)
     {
         rdoILSType3.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code4_ET)
     {
         rdoILSType4.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code5_MimeticDiagram)
     {
         rdoILSType5.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code6_CrossRoadPoint3D)
     {
         rdoILSType6.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code7_RestAreaSummaryMap_Mapy)
     {
         rdoILSType7.Checked = true;
     }
     if (vm.ILS_Type == ILSType.Code8_RestAreaSummaryMap_Gini)
     {
         rdoILSType8.Checked = true;
     }
     txtPsdFullPath.Text = vm.FileName;
     _validatePsdFileVM  = vm;
 }
Exemplo n.º 4
0
        private void LoadFIle(string path)
        {
            var files = Directory.GetFiles(path, "*.psd", SearchOption.AllDirectories);

            // Directory.GetFiles(path, 검색패턴, 검색옵션(하위 디렉토리까지 or 현재 디렉토리까지 ) : 파일 이름을 반환

            _dataSouce.Clear();
            var idx = 0;

            foreach (var file in files)
            {
                var item = new ValidatePsdFileVM();
                item.Index    = ++idx;
                item.FileName = file;
                item.ILS_Type = GetILSType(file);
                if (item.ILS_Type == null)
                {
                    item.Description = "파일명 오류";
                }
                _dataSouce.Add(item);
            }
        }