저는 C# 및 Windows Forms를 처음 사용하며 이와 같은 간단한 UI를 만들고 싶습니다.폴더 트리 생성, Windows Forms
string [] projects;
string [] subjects;
string [] experiments;
string [] scans;
string [] files;
편집 :
나는 다음과 같은 배열을 각각의 하위 요소는 Subject [] subjects, Experiment [] experiments
의 배열 등이 더 적합 할 수있다 (속해있는 부모에 나타내는 정보가 있습니다)
그리고 윈도우 구성 요소가이 방법
projects (<- when clicked should show the string array of projects)
|
|--- subjects (<- when clicked should show the string array of subjects)
|
|---experiments (<- when clicked should show the string array of experiments)
|
|--- scans (<- when clicked should show the string array of scans)
|
|----files (<- when clicked should show the string array of files)
에게 일을해야 양식 나는 내가 더 잘 SO 첫 번째 체크 거라고 생각
은 내가 TreeView component이 법안에 맞는 생각하지만, 나는 윈도우 폼에 새로 온 사람으로 (어떤이 일이 빠른을 끝내야).
TreeView가이 UI를 구현하는 적절한 방법입니까?
트 리뷰가 괜찮이다. 사용법은 http://www.dotnetperls.com/treeview를 참조하십시오. 그러나 배열 레이아웃은 실제 부모 요소에 대한 정보가 없으므로 "부적합"합니다. http://en.wikipedia.org/wiki/Composite_pattern – dognose
감사합니다. 각 자녀가 속한 부모 구성 요소에서, 나는 이것이 적절한 배치가 될 것이라고 생각합니다. – andandandand