본문 바로가기
728x90
반응형

C#9

Unity 3D Gameobject.Find 에서 검색되는 기준 enable가 true인 대상만 찾아진다. -끝- 2020. 11. 17.
[Unity3D] UnityWebRequest를 사용하여 이미지를 다운로드하고 저장하기 1. 개요 Unity5.4에서 공식적으로 발표 된 [UnityWebRequest]를 사용하여 web에있는 이미지 파일을 다운로드하여 로컬에 저장하려고합니다. 동작 확인을 실시한 nity 버전은 [2019.2.13f1]입니다. 2.스크립트 using System; using System.IO; using UnityEngine.Networking; StartCoroutine(GetwebReqContents()); private IEnumerator GetwebReqContents() { Debug.Log("처리시작"); while (Application.internetReachability == NetworkReachability.NotReachable) { Debug.Log("인터넷 접속불가 상태"); y.. 2020. 11. 8.
INFRAGISTICS Windows Forms Grid - AfterRowUpdate Event Infragistics 의 Grid에서 변경 된 데이터가 있을 경우 이벤트가 실행되는 코드 이다. 행이 업데이트 된 후에 발생. 즉, 해당 셀에 대한 변경 사항이 실제로 데이터 원본에 커밋. using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void ultraGrid1_AfterRowUpdate(object sender, Infragistics.Win.UltraWinGrid.RowEventArgs e) { // Infragistics.Win.UltraWinGrid.RowEventArgs e --> 이벤트 발생한 ROW // AfterRow.. 2020. 11. 2.
C# DataTable Sort 정렬 (Order by ) C# DataTable Sort를 사용하여 쉽게 정렬해보자 1. DataTable Sort DataTable dt = new DataTable(); // 오름차순 dt.DefaultView.Sort = "Name ASC"; // 내림차순 dt.DefaultView.Sort = "Name DESC"; // 조합 정렬 dt.DefaultView.Sort = "Name, No ASC, Tel DESC"; 여러개의 컬럼을 조합하여 정렬할 경우 컬럼을 쉼표(",")로 구분하여 입력하면 된다. 2. DataView를 사용법 DataTable dt = new DataTable(); // ... 생략 DataView dv = new DataView(dt); dv.Sort = "JOB ASC, NAME DESC"; dt.. 2020. 10. 30.
728x90
반응형