반응형

Namespace : Microsoft.Win32
Assembly : PresentationFramework.dll

download site : https://ko.dll-files.com/presentationframework.dll.html

attribute value : String
filter가 들어가 있는 string 값

exception : ArgumentException 

 

code1 : empty/null
OpenFileDialog dlg = new OpenFileDialog();
// Show all files
dlg.Filter = string.Empty; //dlg.Filter = null;
dlg.ShowDialog();
code2 ( filter 1 )
OpenFileDialog dlg = new OpenFileDialog();

// Filter by Word Documents
dlg.Filter = "Json File|*.json";
dlg.ShowDialog();
code3 ( filter n )
OpenFileDialog dlg = new OpenFileDialog();

// Filter by Office Files
dlg.Filter = "Office Files|*.doc;*.xls;*.ppt";

dlg.ShowDialog();
code 4 ( all file )
OpenFileDialog dlg = new OpenFileDialog();

// Filter by All Files
dlg.Filter = "All Files|*.*";

dlg.ShowDialog();
code5 ( filter n )
OpenFileDialog dlg = new OpenFileDialog();

// Filter by Word Documents OR Excel Worksheets OR PowerPoint Presentations 
//           OR Office Files 
//           OR All Files
dlg.Filter = "Word Documents|*.doc|Excel Worksheets|*.xls|PowerPoint Presentations|*.ppt" +
             "|Office Files|*.doc;*.xls;*.ppt" +
             "|All Files|*.*";

dlg.ShowDialog();

표시되는 파일 형식의 하위 집합을 지정하려면 필터링할 하나 이상의 파일 형식을 지정하는 문자열 값(필터 문자열)으로 속성을 설정합니다Filter. 
다음은 필터 문자열의 예상 형식을 보여줍니다.

FileType1[[|FileType2]...[|FileTypeN]]

다음 형식을 사용하여 각 파일 형식을 설명합니다.

Label|Extension1[[;Extension2]...[;ExtensionN]]

레이블 부분은 다음과 같이 파일 형식을 설명하는 사람이 읽을 수 있는 문자열 값입니다.
각 파일 형식은 하나 이상의 확장 명에서 설명해야 합니다. 
둘 이상의 확장을 사용하는 경우 각 확장을 세미콜론(";")으로 구분해야 합니다. 

"java file"|"*.jave"
"Json file"|"*.json"
"c file"|"*.c"
"c# file"|"*.cs"
"office file"|"*.doc;*.xls;*.ppt"
"모든 파일"|"*.*"

적용 대상 
제품 버전
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8
Windows Desktop 3.0, 3.1, 5, 6, 7 Preview 4

참고 사이트 : https://docs.microsoft.com/ko-kr/dotnet/api/microsoft.win32.filedialog.filter?view=windowsdesktop-6.0

반응형
반응형
TSource 

generic type parameter

public static IEnumerable<TSource> Union<TSource>

LINW method에서 일반적으로 다음의 파라메터를 사용한다. 

Tsource : element tpye of the input ( source )

TResult : element tpye of the output ( result )

TKey : element type of a key used for things like grouping 

TElement : element type of an intermediate sequence 

반응형
반응형
centos 개발 환경 update 
yum update -y

 

npm 설치 / 버젼 확인

npm이란? Node.js 모듈을 관리하는 패키지 관리자. Node.js로 만든 애플리케이션을 설치 할 수 있다. 

yum install npm
npm --version

 

npm request 설치/ Node.js에서 가장 많이 사용하는 http 네트워크 라이브러리 ( request.js )

npm으로 설치를 할경우 현재 명령어를 실행하는 경로에 설치가 된다. 다른 폴더에서 작업하고자 할경우 새로 설치 하거나, 설치 시 "-g"옵션으로 설치해야 한다. 

ex) npm install -g [모듈이름]

npm install request
npm global module 확인
node -e "console.log(global.module.paths)"
nano에디터 설치/ vim 에디터 설치
yum install git
yum install nano
개발 환경 설정 및 다운로드 
yum install ncurses wget vim net-tools -y
yum list installed | grep -E "wget|ncurses|vim|net-tools"
개발 환경 설치 확인
yum list installed | grep -E "wget|ncurses|vim|net-tools"
반응형

'Language > javascript' 카테고리의 다른 글

javascript 공부 1장  (0) 2022.05.30
반응형
자바스크립트 엔진 ECMAScript

Ecam International에 의해 표준화 된 스크립트 언어의 명세서이다. 

클라이언트 기반 스크립트의 구현을 표준화 시키기 위해 등장. 

 

자바스크립트의 장점

웹 애플리케이션, 데스크톱 애플리케이션, 모바일 애플리케이션, 배치 처리 프로그램 까지 

다양한 분야의 애플리케이션을 개발할 수 있음. 

코드 작성이 쉽다. 

풍부한 라이브러리가 준비 되어 있다. 

유연성이 높아 코드를 쉽고 빠르게 작성할 수 있다. 

프로토타입 기반의 객체지향적인 코드를 작성할 수 있으며, Node.js의 경우 모듈단위로 기능을 관리 할 수 있다. 

 

자바스크립트 엔진 ( Node.js )

웹 서버처럼 네트워크 프로그래밍을 위해 개발된 자바스크립트 실행 환경. 

구글 크롬에 탑재된 자바스크립트 엔진 V8 : 고속 수행 능력을 가졌음. 

Node.js를 사용하면 파일 처리부터 네트워크 처리까지 다양한 작업을 소화 할 수 있다. 

npm(패키지매니저)를 활용하면 다양한 확장기능을 도입 할 수 있다. 

서버에서 실행되는 자바스크립트 실행 황경(런타임)으로 많이 사용된다. 

자바스크립트 엔진 (Rhino - 라이노 / Nashorn - 나스호른)

자바로 구현 된 자바스크립트 엔진. 

JVM ( Java Virtual Machine ) 위에서 자바스크립트를 돌릴 수 있다. 

자바스크립트로 자바의 다양하고 방대한 API or 라이브러리를 이용할 수 있다. 

 

반응형
반응형
  • 사용자 메일 / 이름 설정 
git config --global user.name <USER NAME>
git config --global user.email <USER EMAIL>
  • git commit시 불필요한 파일을 자동으로 제외할 때 ( .gitingnore 파일 수정 ) 
echo <file name> >> .gitignore

gitignore 코드/ 프로젝트 별 모아 놓은 사이트 

https://github.com/github/gitignore

 

GitHub - github/gitignore: A collection of useful .gitignore templates

A collection of useful .gitignore templates. Contribute to github/gitignore development by creating an account on GitHub.

github.com

  • 빈 폴더를 관리대상에 넣고 싶을 때
cd <filename>
touch .gitkeep
  • git config 설정 목록 확인
git config --global --list

<계속 추가할 예정>

 

반응형

+ Recent posts