using System.Windows.Controls; using UtopiaCanteenSystem.ViewModels; namespace UtopiaCanteenSystem.Views; /// /// Settings view: editable API endpoint, save button, load from config. /// No logic in code-behind; all binding and commands in ViewModel. /// public partial class SettingsView : UserControl { public SettingsView() { InitializeComponent(); } public SettingsView(SettingsViewModel viewModel) { InitializeComponent(); DataContext = viewModel; Loaded += (_, _) => viewModel.RefreshCacheSyncTimestamps(); } }