5a96a696b1
- 펌웨어(program), C# 대시보드(TestProgram), 시뮬레이터(Simulator), 프로토콜/문서(Protocol, doc) 전체를 단일 저장소로 통합 - program 폴더의 별도 git 저장소를 제거하고 통합 저장소에 흡수 - 빌드 산출물(program/build, bin/obj, *.o/.elf/.bin/.hex 등) .gitignore 처리 - 사내 Synology NAS Git 원격 연결 예정 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
38 lines
1.2 KiB
C#
38 lines
1.2 KiB
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Media;
|
|
|
|
namespace AirPlanner
|
|
{
|
|
public partial class MainWindow : Window
|
|
{
|
|
static readonly Brush NavOff = (Brush)new BrushConverter().ConvertFromString("#7B8090")!;
|
|
static readonly Brush NavOn = Brushes.White;
|
|
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
Show("home");
|
|
}
|
|
|
|
void Show(string view)
|
|
{
|
|
if (view == "control") { MainContent.Content = new ControlView(); SetActive(navCtrl); }
|
|
else { MainContent.Content = new HomeView(); SetActive(navHome); }
|
|
}
|
|
|
|
void SetActive(Button active)
|
|
{
|
|
foreach (var b in new[] { navHome, navCall, navCtrl, navView, navSet })
|
|
{
|
|
b.Foreground = b == active ? NavOn : NavOff;
|
|
b.FontWeight = b == active ? FontWeights.Bold : FontWeights.Normal;
|
|
}
|
|
}
|
|
|
|
void Nav_Home(object sender, RoutedEventArgs e) => Show("home");
|
|
void Nav_Control(object sender, RoutedEventArgs e) => Show("control");
|
|
void Nav_Todo(object sender, RoutedEventArgs e) { /* 통화/조회/설정/알림/비상 — 추후 구현 */ }
|
|
}
|
|
}
|