紧急开锁页面添加退出
This commit is contained in:
parent
54489ac267
commit
3254fcd621
|
@ -10,6 +10,7 @@ using Prism.Regions;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
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
|
public DelegateCommand ReturnLoginDelegate
|
||||||
{
|
{
|
||||||
get => new DelegateCommand(() =>
|
get => new DelegateCommand(() =>
|
||||||
|
|
Loading…
Reference in New Issue