본문 바로가기

분류 전체보기275

재부팅 없이 비트락 잠금 상태 변경 재부팅 없이 비트락 잠금 상태 변경 ex) E 드라이브를 잠금 때에는 -lock, 풀때에는 -unlock 사용 manage-bde -lock E: -ForceDismount manage-bde -unlock E: -Password 2022. 4. 1.
CODESYS Control Win (Simulator) 연결 CODESYS를 설치하면 Tray 에 위와 같은 아이콘이 설치되어져 있는 것을 확인 할 수 있다. Start PLC를 누르면 시뮬레이터가 실행이 된다. 여기서 확인이 필요한 부분이 x64, x86 어떤 타입으로 설치가 되어져 있느냐를 확인해야 한다. 지금 테스트로 설치한 버전은 x64이다. 이게 왜 중요한지 아래에 다시 설명한다. Start PLC를 누르면 위와 같이 아이콘이 Red 색상으로 변경이 되어 작동중임을 확인 할 수가 있다. New Project를 생성할 때 주의가 필요하다. 우리는 x64 버전을 설치했다. 따라서 Device 장치를 선택할 때 꼭 x64를 선택해야 한다. x64가 표시되지 않은 x86 장치로 프로젝트를 만들면 Communicatoin Settings에서 PLC와 연결을 할 때.. 2022. 3. 16.
C# 코드 스타일 옵션 변경 MSVS 2019를 사용하는데 Interface 자동 생성을 하면 람다 스타일로 생성이 된다. 람다를 잘 모르거나 직관적으로 소스를 보고 싶을 때 람다 스타일은 눈에 잘 익지 않는 개발자들이 있을 것이다. 이럴 경우 이 부분을 옵션으로 변경을 할 수가 있다. 도구 - 옵션 - 텍스트 편집기 - C# - 코드 스타일 Tools - Option - Text Editor - C# - Code Style 1) 기본 설정 상태 아래와 같이 '메서드에 식 본문 사용' 기본 설정이 '가능한 경우'로 되어 있다. 이렇게 되어 있으면 람다로 생성이 된다. 2) 일반 표시 방식으로 변경 '안 함'으로 변경을 하면 람다로 표시되지 않는다. 예문이 바로 아래에 표시가 되니 사용자에 맞게 수정을 해서 사용하면 된다. 아직 나도.. 2022. 3. 14.
Telerik RadRibbonView Example (리본바 메뉴 예제) Telerik을 리본바 메뉴 윈도우를 만들어 보았다. 홈페이지의 Getting Started를 보면 쉽게 만들수 있지만 나처럼 WPF, Telerik 초보자를 위해서 만드는 과정을 정리해 본다. 잊으면 나중에 다시 볼 수 있도록~ https://docs.telerik.com/devtools/wpf/controls/radribbonview/gettingstarted WPF RibbonView | Getting Started | Telerik UI for WPF This tutorial will walk you through the creation of a sample application that contains RadRibbonView. In order to use the RadRibbonView con.. 2022. 1. 19.
WPF 툴바 만들기 1. 툴바 Document https://docs.telerik.com/devtools/wpf/controls/radtoolbar/getting-started WPF ToolBar | Getting Started | Telerik UI for WPF docs.telerik.com 2. Toolbar에 이미지를 넣기 샘플 코드 3. Resouces Image 화면에 표시하기 위해서 icon 이미지의 속성의 빌드 작업에 'Resouece'가 있어야 화면에 표시가 된다. 맨 처음에는 '없음'으로 되어져 있다. 2021. 12. 26.
Telerik Menu 추가 1. Telerik Menu 추가 Document https://docs.telerik.com/devtools/wpf/controls/radmenu/getting-started#add-radmenu WPF Menu | Getting Started | Telerik UI for WPF docs.telerik.com Document를 확인해 보니 메뉴를 추가할 때 Blend를 사용한다. Blend를 사용해본 적이 없는데 관련 내용은 MSDN을 보고 참고 했다. https://docs.microsoft.com/ko-kr/visualstudio/xaml-tools/creating-a-ui-by-using-blend-for-visual-studio?view=vs-2022 Blend for Visual Studio.. 2021. 12. 21.
Hierarchical RadGridView Example https://docs.telerik.com/devtools/wpf/controls/radgridview/hierarchical-gridview/basic-hierarchies WPF DataGrid | Basic Hierarchies | Telerik UI for WPF Controls / RadGridView / Hierarchical GridView RadGridView allows you to display hierarchical data in the form of nested grid views. To do so you have to define a table definition for each subset of data you want to display. Such a definition ca.. 2021. 9. 2.
RadTreeListView Example https://docs.telerik.com/devtools/wpf/controls/radtreelistview/radtreeliestview-getting-started#radtreelistview-vs-radgridview WPF TreeListView | Getting Started | Telerik UI for WPF This article will guide you through the process of creating a sample application with RadTreeListView. You should use the RadTreeListView control to display hierarchical data in a tabular format. In order to achieve.. 2021. 9. 2.
C# Idle 상태 체크 using System; using System.Runtime.InteropServices; namespace BlahBlah { public static class IdleTimeDetector { [DllImport("user32.dll")] static extern bool GetLastInputInfo(ref LASTINPUTINFO plii); public static IdleTimeInfo GetIdleTimeInfo() { int systemUptime = Environment.TickCount, lastInputTicks = 0, idleTicks = 0; LASTINPUTINFO lastInputInfo = new LASTINPUTINFO(); lastInputInfo.cbSize = (.. 2021. 7. 31.
LIST