using System.Collections.ObjectModel;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using DMS.Core.Enums;
using DMS.Core.Models;
using DMS.WPF.Helper;
using DMS.WPF.Interfaces;
using DMS.WPF.Services;
using DMS.WPF.ItemViewModel;
using DMS.WPF.Views;
using Microsoft.Extensions.Logging;
// AddAsync this using directive
// AddAsync this using directive
namespace DMS.WPF.ViewModels;
///
/// 主视图模型,负责应用程序的主导航和数据管理。
///
public partial class MainViewModel : ViewModelBase
{
private readonly IDialogService _dialogService;
private readonly IWPFDataService _wpfDataService;
private readonly IWpfDataService _dataStorageService;
private readonly INavigationService _navigationService;
private readonly ILogger _logger;
///
/// 当前显示的视图模型。
///
[ObservableProperty]
private ViewModelBase _currentViewModel;
///
/// 应用程序的菜单列表。
///
[ObservableProperty]
private ObservableCollection