끄적끄적 메모공간
close
프로필 배경
프로필 로고

끄적끄적 메모공간

  • 분류 전체보기 (569) N
    • [====== Development ======] (408)
      • C# (139)
      • C++ (25)
      • Python (42)
      • Android (16)
      • React (18)
      • Flutter (63)
      • DICOM (14)
      • Etc (91)
    • [======= 지식 저장소 =======] (41)
    • [======= 주식 , 경제 =======] (67) N
    • [========== Etc =========] (33)
  • 홈
  • 태그
  • 방명록

ObservableCollection 의 RemoveAll Extention

public static int RemoveAll(this ObservableCollection coll, Func condition) { var itemsToRemove = coll.Where(condition).ToList(); foreach (var itemToRemove in itemsToRemove) { coll.Remove(itemToRemove); } return itemsToRemove.Count; } listItems.RemoveAll(x => x.IsEmpty);

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 9. 4.
  • textsms

C# Enum 타입을 int로 변환하는 Extention

public static int ToInt(this T enumValue) where T : Enum { return Convert.ToInt32(enumValue); }

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 5. 16.
  • textsms

C#으로 윈도우의 해상도와 배율 설정을 변경하는 방법

internal class DisplaySettings { [DllImport("user32.dll")] private static extern bool EnumDisplaySettings(string deviceName, int modeNum, ref DEVMODE devMode); [DllImport("user32.dll")] private static extern int ChangeDisplaySettings(ref DEVMODE devMode, int flags); private const int ENUM_CURRENT_SETTINGS = -1; private const int CDS_UPDATEREGISTRY = 0x01; private const int CDS_FULLSCREEN = 0x04;..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 5. 11.
  • textsms

WPF - 여러개의 이미지 합치기

public static RenderTargetBitmap MergeImage(BitmapSource img1, BitmapSource img2) { var group = new DrawingGroup(); group.Children.Add(new ImageDrawing(img1, new Rect(0, 0, img1.PixelWidth, img1.PixelHeight))); group.Children.Add(new ImageDrawing(img2, new Rect(0, 0, img2.PixelWidth, img2.PixelHeight))); var drawingVisual = new DrawingVisual(); using (var drawingContext = drawingVisual.RenderOpe..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 4. 25.
  • textsms

C# List에서 중복 제거한 리스트 만들기

C# 목록에서 요소를 선택할 때 중복을 방지하려면 원래 시퀀스의 고유한 요소만 포함하는 새 시퀀스를 반환하는 Distinct() 메서드를 사용할 수 있습니다. List numbers = new List { 1, 2, 3, 2, 4, 3, 5 }; List uniqueNumbers = numbers.Distinct().ToList(); // The uniqueNumbers list now contains { 1, 2, 3, 4, 5 } GroupBy() 메서드를 사용하여 값별로 목록의 요소를 그룹화한 다음 각 그룹에서 첫 번째 요소를 선택할 수도 있습니다. List numbers = new List { 1, 2, 3, 2, 4, 3, 5 }; List uniqueNumbers = numbers.GroupB..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 4. 6.
  • textsms

WPF 컨트롤 위치값 구하기

public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); this.LocationChanged += MainWindow_LocationChanged; } private void MainWindow_LocationChanged(object? sender, EventArgs e) { Point position = btnTest.PointToScreen(new Point(0, 0)); lblPosition.Content = $"Position From Screen ({position.X} , {position.Y})"; Matrix matrix = PresentationSource.FromVisual(btnTe..

  • format_list_bulleted [====== Development ======]/C#
  • · 2023. 3. 28.
  • textsms
  • navigate_before
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ···
  • 24
  • navigate_next
공지사항
전체 카테고리
  • 분류 전체보기 (569) N
    • [====== Development ======] (408)
      • C# (139)
      • C++ (25)
      • Python (42)
      • Android (16)
      • React (18)
      • Flutter (63)
      • DICOM (14)
      • Etc (91)
    • [======= 지식 저장소 =======] (41)
    • [======= 주식 , 경제 =======] (67) N
    • [========== Etc =========] (33)
최근 글
인기 글
최근 댓글
태그
  • #코인
  • #c#
  • #XAML
  • #이더리움
  • #Bitcoin
  • #소주전쟁
  • #블록체인
  • #비트코인
  • #Python
  • #WPF
전체 방문자
오늘
어제
전체
Copyright © 쭈미로운 생활 All rights reserved.
Designed by JJuum

티스토리툴바