From 0c4bdfd5a88f83bd706beea57001dfca422e91a7 Mon Sep 17 00:00:00 2001 From: "Matthew Parker [SSW]" <61717342+MattParkerDev@users.noreply.github.com> Date: Tue, 28 Nov 2023 15:11:33 +1000 Subject: [PATCH] fix warnings --- .../ViewModels/MainWindowViewModel.cs | 6 +-- .../ViewModels/PreviewMainWindowViewModel.cs | 53 ------------------- 2 files changed, 3 insertions(+), 56 deletions(-) delete mode 100644 DotNetSolutionTools.App/ViewModels/PreviewMainWindowViewModel.cs diff --git a/DotNetSolutionTools.App/ViewModels/MainWindowViewModel.cs b/DotNetSolutionTools.App/ViewModels/MainWindowViewModel.cs index 2ae7fe7..7b2e115 100644 --- a/DotNetSolutionTools.App/ViewModels/MainWindowViewModel.cs +++ b/DotNetSolutionTools.App/ViewModels/MainWindowViewModel.cs @@ -13,13 +13,13 @@ public partial class MainWindowViewModel : ViewModelBase private readonly FileService _fileService = new(); [ObservableProperty] - private string _solutionFolderPath; + private string _solutionFolderPath = string.Empty; [ObservableProperty] - private string _solutionFilePath; + private string _solutionFilePath = string.Empty; [ObservableProperty] - private string _csprojFilePath; + private string _csprojFilePath = string.Empty; [ObservableProperty] private ObservableCollection _parityResults = new() { }; diff --git a/DotNetSolutionTools.App/ViewModels/PreviewMainWindowViewModel.cs b/DotNetSolutionTools.App/ViewModels/PreviewMainWindowViewModel.cs deleted file mode 100644 index d831b27..0000000 --- a/DotNetSolutionTools.App/ViewModels/PreviewMainWindowViewModel.cs +++ /dev/null @@ -1,53 +0,0 @@ -using System.Collections.ObjectModel; -using CommunityToolkit.Mvvm.ComponentModel; -using CommunityToolkit.Mvvm.Input; - -namespace DotNetSolutionTools.App.ViewModels; - -public partial class PreviewMainWindowViewModel : ViewModelBase -{ - [ObservableProperty] - private string _solutionFolderPath = - "C:\\Users\\matt\\source\\repos\\DotNetSolutionTools\\DotNetSolutionTools.App"; - - [ObservableProperty] - private string _solutionFilePath = - "C:\\Users\\matt\\source\\repos\\DotNetSolutionTools\\DotNetSolutionTools.App.sln"; - - [ObservableProperty] - private string _csprojFilePath = - "C:\\Users\\matt\\source\\repos\\DotNetSolutionTools\\DotNetSolutionTools.App.csproj"; - - [ObservableProperty] - private ObservableCollection _parityResults = new() { "Error Message" }; - - [RelayCommand] - private async Task ExecuteParityChecker(CancellationToken token) - { - throw new NotImplementedException(); - } - - [RelayCommand] - private async Task FormatCsProjFile(CancellationToken token) - { - throw new NotImplementedException(); - } - - [RelayCommand] - private async Task LoadSolutionFile(CancellationToken token) - { - throw new NotImplementedException(); - } - - [RelayCommand] - private async Task LoadSolutionFolder(CancellationToken token) - { - throw new NotImplementedException(); - } - - [RelayCommand] - private async Task LoadCsprojFile(CancellationToken token) - { - throw new NotImplementedException(); - } -}