mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-09 00:34:14 +08:00
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using BetterGenshinImpact.GameTask;
|
|
using BetterGenshinImpact.Helpers;
|
|
using BetterGenshinImpact.View;
|
|
using BetterGenshinImpact.View.Test;
|
|
using CommunityToolkit.Mvvm.ComponentModel;
|
|
using CommunityToolkit.Mvvm.Input;
|
|
using CommunityToolkit.Mvvm.Messaging;
|
|
using Fischless.WindowCapture;
|
|
using Microsoft.Extensions.Logging;
|
|
using System;
|
|
using System.Diagnostics;
|
|
using System.Windows;
|
|
using BetterGenshinImpact.Core;
|
|
using CommunityToolkit.Mvvm.Messaging.Messages;
|
|
using Vanara.PInvoke;
|
|
using System.Collections.ObjectModel;
|
|
using BetterGenshinImpact.View.Pages;
|
|
using Wpf.Ui;
|
|
using Wpf.Ui.Controls;
|
|
|
|
namespace BetterGenshinImpact.ViewModel
|
|
{
|
|
public partial class MainWindowViewModel : ObservableObject
|
|
{
|
|
public MainWindowViewModel(INavigationService navigationService)
|
|
{
|
|
|
|
}
|
|
|
|
|
|
[RelayCommand]
|
|
private void OnLoaded()
|
|
{
|
|
|
|
}
|
|
|
|
[RelayCommand]
|
|
private void OnClosed()
|
|
{
|
|
WeakReferenceMessenger.Default.Send(new PropertyChangedMessage<object>(this, "Close", "", ""));
|
|
Debug.WriteLine("MainWindowViewModel Closed");
|
|
Application.Current.Shutdown();
|
|
}
|
|
|
|
}
|
|
} |