12345678910111213141516171819202122232425262728 |
- using AIDiagnosisDemo.ViewModel;
- using System.Windows;
- namespace AIDiagnosisDemo.Presentation
- {
- /// <summary>
- /// SettingWindow.xaml 的交互逻辑
- /// </summary>
- public partial class SettingWindow : Window
- {
- private SettingPageViewModel _settingPageViewModel;
- public SettingWindow()
- {
- InitializeComponent();
- _settingPageViewModel = new SettingPageViewModel();
- DataContext = _settingPageViewModel;
- }
- private void OnSaveAndExit(object sender, RoutedEventArgs e)
- {
- if (_settingPageViewModel.Save())
- {
- Close();
- }
- }
- }
- }
|