-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Removed FileMenuViewModel from MainWindowViewModelBase.
Introduced MainWindowWithFileMenuViewModel to handle FileMenuViewModel. BREAKING CHANGE: Removed FileMenuViewModel from MainWindowViewModelBase.
- Loading branch information
Stéphane ANDRE (E104915)
committed
Dec 21, 2024
1 parent
f90dc3e
commit 91e1e9a
Showing
2 changed files
with
27 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
src/MyNet.UI/ViewModels/Shell/MainWindowWithFileMenuViewModel.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// Copyright (c) Stéphane ANDRE. All Right Reserved. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using MyNet.UI.Busy; | ||
using MyNet.UI.Notifications; | ||
using MyNet.UI.Services; | ||
|
||
namespace MyNet.UI.ViewModels.Shell | ||
{ | ||
public class MainWindowWithFileMenuViewModel : MainWindowViewModelBase | ||
{ | ||
public FileMenuViewModelBase FileMenuViewModel { get; } | ||
|
||
public MainWindowWithFileMenuViewModel( | ||
FileMenuViewModelBase fileMenuViewModel, | ||
INotificationsManager notificationsManager, | ||
IAppCommandsService appCommandsService, | ||
IBusyService mainBusyService) | ||
: base(notificationsManager, appCommandsService, mainBusyService) => FileMenuViewModel = fileMenuViewModel; | ||
|
||
protected override void Cleanup() | ||
{ | ||
FileMenuViewModel.Dispose(); | ||
base.Cleanup(); | ||
} | ||
} | ||
} |