a502322188
손상된 .git 히스토리(missing tree)로 재초기화 후 작업트리 전체 커밋. .claude/ 만 제외(로컬 에이전트 설정). 구 저장소 백업(.git_corrupt_backup/) 포함. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
30 lines
883 B
C#
30 lines
883 B
C#
using System;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Threading;
|
|
|
|
namespace AirPlanner
|
|
{
|
|
public partial class HomeView : UserControl
|
|
{
|
|
readonly DispatcherTimer _clock = new() { Interval = TimeSpan.FromSeconds(10) };
|
|
|
|
public HomeView()
|
|
{
|
|
InitializeComponent();
|
|
_clock.Tick += (_, _) => UpdateClock();
|
|
_clock.Start();
|
|
UpdateClock();
|
|
Unloaded += (_, _) => _clock.Stop();
|
|
}
|
|
|
|
void UpdateClock()
|
|
{
|
|
var n = DateTime.Now;
|
|
string[] dow = { "일", "월", "화", "수", "목", "금", "토" };
|
|
string ap = n.Hour < 12 ? "오전" : "오후";
|
|
int h12 = n.Hour % 12; if (h12 == 0) h12 = 12;
|
|
txtClock.Text = $"{n.Month}월 {n.Day}일 ({dow[(int)n.DayOfWeek]}) {ap} {h12}시 {n.Minute:00}분";
|
|
}
|
|
}
|
|
}
|