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..
C#

수식 모듈의 병렬 처리 부분에서 고성능 PC에서 성능 저하 문제로 최대 병렬 처리 쓰레드 개수 제한 사유 : 수식 묶음에서 Devexpress SpreadSheetControl의 수식 계산 모듈 단일 사용 및 수식 분석 모듈 (외부 모듈 static 형태로 사용)이 과한 병렬 처리로 리소스 경합 문제로 지연 (IPropertyChanged 인터페이스를 구현해둔 상태로 Class 에서 사용되며 UI에 Binding 됨) (해당 테스트는 Benchmark 툴을 사용한것이 아닌 시간으로 간이 계산함) 8Core 8 Thread 가상 머신 - 24s 16Core 32 Thread 머신 - 60s → 처리 후 → 24s 병렬 Linq 에서 최대수 제한을 위한 메서드 사용 WithDegreeOfParallelism
다중 모니터 사용시 주 모니터 쪽에서 응용프로그램이 시작되며 Form이 열리는 것이 불편할 수 있어 사용. private static void SetStartPosition(Form frm) { frm.StartPosition = System.Windows.Forms.FormStartPosition.Manual; System.Windows.Forms.Screen screen = System.Windows.Forms.Screen.FromPoint(System.Windows.Forms.Cursor.Position); System.Drawing.Rectangle rectangle = screen.WorkingArea; var d = screen.WorkingArea.Location; frm.Left = d.X..

Microsoft.Identity.Client.MsalServiceException: 'AADSTS1002016: You are using TLS version 1.0, 1.1 and/or 3DES cipher which are deprecated to improve the security posture of Azure AD. Your TenantID is: {0}. Please refer to https://go.microsoft.com/fwlink/?linkid=2161187 and conduct needed actions to remediate the issue. For further questions, please contact your administrator. Trace ID: {0} Corr..
C# 에서 사용되는 WebClient나 WebRequest, HttpWebRequest 등은 URL을 매개변수로 string 형태로도 받지만.. 내부적으로 Uri Class로 처리하는지 Fiddler로 호출을 잡아 보면 특수문자가 인코딩되어 처리되는게 보입니다.(보통 Url Encoding이나 Decoding을 처리하는데.. 처리가 안되어 있는 사이트등에서 문제가 됩니다..) Uri Class의 Escape 자동 처리 부분을 제외하기 위해서 사용되는 방법 입니다. //------------------------------------------ 사용 --------------------------------------------- private void button1_Click(object sender, ..
IIS 에서 보안 채널중 SSL 3.0, SSL 2.0, TLS 1.0 을 미사용으로 변경후 TLS 1.1, TLS 1.2를 적용할때 WebService와 통신이 안되는 문제를 해결 하는 방법입니다. ( IIS Crypto 2.0 으로 설정시 https 통신에 문제가 생기더군요.) .NetFramework 4.5.1 이상 버전부터 ServicePointManager.SecurityProtocol 에서 Tls11, Tls12 이 생겼습니다. 아래 내용은 적용 하는 부분 입니다. static class Program { /// /// 해당 응용 프로그램의 주 진입점입니다. /// [STAThread] static void Main() { // ------------------------------------..