紧急开锁页面添加退出

This commit is contained in:
maqiao 2025-03-04 15:38:58 +08:00
parent 54489ac267
commit 3254fcd621
1 changed files with 8 additions and 0 deletions

View File

@ -10,6 +10,7 @@ using Prism.Regions;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
@ -52,6 +53,13 @@ namespace DM_Weight.ViewModels
}
);
}
private DelegateCommand? _exitCommand;
public DelegateCommand ExitCommand => _exitCommand ??= new DelegateCommand(Exit);
void Exit()
{
Process.GetCurrentProcess().Kill();
Environment.Exit(0);
}
public DelegateCommand ReturnLoginDelegate
{
get => new DelegateCommand(() =>