Wino.Server and Wino.Packaging projects. Enabling full trust for UWP and app service connection manager basics.
This commit is contained in:
27
Wino.Server/TrayIconViewModel.cs
Normal file
27
Wino.Server/TrayIconViewModel.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using System.Windows;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
|
||||
namespace Wino.Server
|
||||
{
|
||||
public partial class TrayIconViewModel : ObservableObject
|
||||
{
|
||||
private readonly ServerContext _context = new ServerContext();
|
||||
|
||||
[RelayCommand]
|
||||
public void LaunchWino()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Shuts down the application.
|
||||
/// </summary>
|
||||
[RelayCommand]
|
||||
public void ExitApplication()
|
||||
{
|
||||
// TODO: App service send message to UWP app to terminate itself.
|
||||
|
||||
Application.Current.Shutdown();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user