-
[C#] interface.propertyC#/기초 2024. 1. 16. 09:55
c# explicit interface implementation property https://learn.microsoft.com/en-us/dotnet/csharp/programming-guide/interfaces/explicit-interface-implementation Explicit Interface Implementation - C# Programming Guide - C# A class can implement interfaces that contain a member with the same signature in C#. Explicit implementation creates a class member specific to one interface. learn.microsoft.com
-
[C#] SuppressMessageC#/기초 2024. 1. 16. 09:44
코드 단위로 해당 규칙을 Disable. 규칙을 위반하는 .NET 코드에 대해서 SuppressMessage 특성을 설정해서 예외적으로 벗어납니다. [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1040:AvoidEmptyInterfaces", Justification = "This is a marker interface")] public interface IModuleCatalogItem { } https://learn.microsoft.com/ko-kr/dotnet/api/system.diagnostics.codeanalysis.suppressmessageattribute?view=netframework-4.0 Supp..
-
[DX_WPF] DevExpress 다국어 지원DevExpress/DX_WPF 2024. 1. 12. 14:23
사용하는 DevExpress Version 잘 맞춰 줘야함. 아니면 적용 안 됨. (요거 때문에 개 고생) 플랫폼 선택하고 (Blazor, WPF, MAUI ~) Module 선택하고 ~ Display 선택(꼭)하고~ 그냥 다 All~ 하면 됨. Translation에서 번역하고자 하는 내용으로 수정 후 Save하고 Download하면 요런 메일 날라 옴. 2023.1 Ko 링크 클릭하면 다운 받음. .exe 실행해서 풀면 리소스 폴더 unZip함. 해당하는 리소스.dll을 실행폴더 내의 ko 폴더에다가 복사 program.cs 혹은 Application onStartUp 위치에다가 CultureInfo 작성. CultureInfo culture = CultureInfo.CreateSpecificCult..
-
[DX_WPF] 시작하기 (MDI)DevExpress/DX_WPF 2024. 1. 10. 07:47
New Solution Project 파일 수정 (Module 동적로드) App.xaml.cs using System; using DevExpress.Mvvm; using DevExpress.Mvvm.ModuleInjection; using DevExpress.Mvvm.UI; using DevExpress.Xpf.Core; using DXModular.Common; using DXModular.Main.Properties; using DXModular.Main.ViewModels; using DXModular.Main.Views; using System.Collections.Generic; using System.ComponentModel; using System.IO; using System.Linq;..
-
[Prism] ViewModelLocator.AutoWireViewModelC#/Prism 2024. 1. 9. 16:29
https://www.c-sharpcorner.com/article/datacontext-autowire-in-wpf/ DataContext And Autowire In WPF There are 3 ways to bind the View with ViewModel. One way is to bind DataContext Property within a XAML, Second is to assign DataContext within Code-Behind and last using ViewModelLocator. www.c-sharpcorner.com
-
[WPF] App.configC#/WPF 2024. 1. 9. 13:44
https://learn.microsoft.com/ko-kr/visualstudio/ide/how-to-add-app-config-file?view=vs-2022 프로젝트에 app.config 파일 추가 - Visual Studio (Windows) 공용 언어 런타임에서 어셈블리 파일을 찾고 로드하는 방법을 사용자 지정할 수 있도록 C# 프로젝트에 애플리케이션 구성 파일(app.config 파일)을 추가하는 방법을 알아봅니다. learn.microsoft.com https://learn.microsoft.com/ko-kr/dotnet/api/system.reflection.assembly.loadfrom?view=net-8.0 Assembly.LoadFrom 메서드 (System.Reflection) 어..
-
[C#] VS 빌드 이벤트C#/기초 2024. 1. 8. 07:55
https://2ry53.tistory.com/entry/%EB%B9%8C%EB%93%9C-%EC%9D%B4%EB%B2%A4%ED%8A%B8-%EB%A7%A4%ED%81%AC%EB%A1%9C-%EC%A0%95%EB%A6%AC-ProjectName-TargetPath-TargetName 빌드 이벤트 매크로 정리 ($(ProjectName), $(TargetPath), $(TargetName) ...) 빌드 전 이벤트, 빌드 후 이벤트 등 명령문을 넣을때 사용되는 매크로 정의 입니다.(그 이외에도 사용되겠죠^^)저도 잘 모르는 부분도 있고 추후 사용할 때 참고 할 수 있게 기록을 남깁니다.^^출 2ry53.tistory.com