forked from amkovkov/GranuSightSoftware2
refactor: View models
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace GSS2.UI.Core.ViewModels;
|
||||
|
||||
public partial class MainWindowViewModel : ViewModelBase
|
||||
{
|
||||
private readonly ILogger<MainWindowViewModel> _logger;
|
||||
|
||||
[ObservableProperty] private string _title;
|
||||
|
||||
public MainWindowViewModel(ILogger<MainWindowViewModel> logger)
|
||||
{
|
||||
_logger = logger;
|
||||
_logger.LogInformation("Initialization");
|
||||
|
||||
Title = "GranuSight Software 2";
|
||||
|
||||
_logger.LogInformation("Initialized");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user