.Net Framework Standard

1. C#의 ServicePointManager 설정 문제using System;using System.Net;using System.Net.Http;using System.Security.Cryptography.X509Certificates;class Program{ static void Main() { // TLS 1.2 이상을 활성화 ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12 | SecurityProtocolType.Tls13; // SSL/TLS 인증서 검증 우회 (테스트용, 실제 운영에서는 사용 X) ServicePointManager.ServerCertific..
Devexpress의 Winform 의 GridControl (GridView, BandedGridView) 및 TreeList 의 Indicator Header에 버튼을 추가 하는 코드 /*// 사용법// 이미지 및 ToolTipContainer 를 인스턴스의 속성으로 노출IndicatorHeaderButton indicatorHeaderButton = new IndicatorHeaderButton(this.gc_Input);indicatorHeaderButton.IndicatorButtonClick += (ss, ee) =>{ // 버튼 클릭};*/public sealed class IndicatorHeaderButton{ private static readonly string AddBu..
소스 코드에서 tree.FocuseNode.Check = true 등을 설정할 경우 BeforeCheckNode, AfterCheckNode가 동작하지 않음End-User 용으로 키보드, 마우스 등의 프로그램 사용자가 행위에 대해서 이벤트 발생위와 같은 문제 처리를 위해서 Reflection을 사용하여 Event Method 를 찾아서 처리Devexpress Winform TreeListControl - 20.1.6.0 에서 작업 되었음private void RiaseBeforeAfterNodeChecked(TreeList tree, TreeListNode currentNode, bool toChecked){ System.ComponentModel.EventHandlerList eventHandle..
* treelist 설정 int footerCount = 4; int footerRowHeight = (treeList1.RowHeight * footerCount) + ((2 + 2) * footerCount); this.treeList1.KeyFieldName = "ID"; this.treeList1.ParentFieldName = "ParentID"; this.treeList1.OptionsView.ShowSummaryFooter = true; this.treeList1.FooterPanelHeight = footerRowHeight; this.treeList1.CustomDrawFooterCell += treeList1_CustomDrawFooterCell; this.treeList1.DataSo..
private void AdditionalBMController_CustomDrawBandHeader(object sender, DevExpress.XtraGrid.Views.BandedGrid.BandHeaderCustomDrawEventArgs e) { if (e.Band != null ) { if (e.Band.ReallyVisible == false || e.Band.HasChildren == false) return; if (e.Graphics.ClipBounds.Width > e.Info.CaptionRect.Width) return; e.Info.Caption = ""; e.Painter.DrawObject(e.Info); System.Drawing.Drawing2D.GraphicsState..
수식 모듈의 병렬 처리 부분에서 고성능 PC에서 성능 저하 문제로 최대 병렬 처리 쓰레드 개수 제한 사유 : 수식 묶음에서 Devexpress SpreadSheetControl의 수식 계산 모듈 단일 사용 및 수식 분석 모듈 (외부 모듈 static 형태로 사용)이 과한 병렬 처리로 리소스 경합 문제로 지연 (IPropertyChanged 인터페이스를 구현해둔 상태로 Class 에서 사용되며 UI에 Binding 됨) (해당 테스트는 Benchmark 툴을 사용한것이 아닌 시간으로 간이 계산함) 8Core 8 Thread 가상 머신 - 24s 16Core 32 Thread 머신 - 60s → 처리 후 → 24s 병렬 Linq 에서 최대수 제한을 위한 메서드 사용 WithDegreeOfParallelism
달빛에취하다
'.Net Framework Standard' 카테고리의 글 목록