[Phase L14] 네트워크·계산·시스템 도구 핸들러 4종 추가
WolHandler.cs (신규, ~200줄, prefix=wol): - MAC 파싱: :/- 구분자 제거 후 12자리 hex → byte[6] - 매직 패킷: 0xFF×6 + MAC×16 = 102바이트 UDP 브로드캐스트 - 포트 9 + 7 동시 전송, UdpClient.EnableBroadcast=true - wol_hosts.json 영속 스토리지: save/delete 서브커맨드 - 저장된 호스트 목록 Enter → 즉시 전송 RegHandler.cs (신규, ~185줄, prefix=reg): - HKCU/HKLM/HKCR/HKU/HKCC 5개 하이브 지원 - RegistryKey.OpenSubKey 오류를 변수로 분리 (CS1631 회피) - 값 타입별 포맷: string/int/long/byte[]/string[] 각각 처리 - 9개 즐겨찾기(Run/Uninstall/Environment/Explorer) 빠른 접근 - 조회 전용 — OpenSubKey(writable: false) TipHandler.cs (신규, ~200줄, prefix=tip): - decimal 타입으로 금액 계산 (부동소수점 오차 없음) - 기본 모드: 10/15/18/20/25% 5종 팁 동시 표시 - off: 할인가 + 5~50% 비교, vat: 포함/역산 동시 계산 - 100원 단위 올림: Math.Ceiling(perPerson / 100) * 100 - 쉼표/원 제거 파싱으로 "50,000원" 형식 지원 FontHandler.cs (신규, ~100줄, prefix=font): - Fonts.SystemFontFamilies WPF API (PresentationCore) - static List<string>? _fontCache + lock 객체로 스레드 안전 캐시 - 전체 폰트 알파벳 정렬 후 최초 1회 로드 - 그룹 힌트: 한글/나눔/mono/Arial/Times/Consolas App.xaml.cs: 4개 핸들러 Phase L14 블록 등록 docs/LAUNCHER_ROADMAP.md: Phase L14 완료 섹션 추가 빌드: 경고 0, 오류 0 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -267,6 +267,16 @@ public partial class App : System.Windows.Application
|
||||
// L13-4: 나이·D-day 계산기 (prefix=age)
|
||||
commandResolver.RegisterHandler(new AgeHandler());
|
||||
|
||||
// ─── Phase L14 핸들러 ─────────────────────────────────────────────────
|
||||
// L14-1: Wake-on-LAN (prefix=wol)
|
||||
commandResolver.RegisterHandler(new WolHandler());
|
||||
// L14-2: 레지스트리 조회 (prefix=reg)
|
||||
commandResolver.RegisterHandler(new RegHandler());
|
||||
// L14-3: 팁·할인·분할 계산기 (prefix=tip)
|
||||
commandResolver.RegisterHandler(new TipHandler());
|
||||
// L14-4: 시스템 폰트 목록 (prefix=font)
|
||||
commandResolver.RegisterHandler(new FontHandler());
|
||||
|
||||
// ─── 플러그인 로드 ────────────────────────────────────────────────────
|
||||
var pluginHost = new PluginHost(settings, commandResolver);
|
||||
pluginHost.LoadAll();
|
||||
|
||||
Reference in New Issue
Block a user