Achtung. Überarbeitung Closing AnimatedBeWoWindow

This commit is contained in:
2026-06-23 15:12:45 +02:00
parent f33c748429
commit 7d488886d0
5 changed files with 100 additions and 100 deletions

View File

@@ -976,7 +976,7 @@ namespace BeWo.ViewModel
fav_vm.SubPrompts.VMList.Clear();
folders.VMList.Insert(0, fav_vm);
folders.VMList[0].SubFolders.VMList.Insert(0, fav_vm);
findFavoriten(folders, fav_vm);
}

View File

@@ -81,7 +81,8 @@ namespace BeWo.ViewModel.View.Administration
public AbstractBaseVM SelectedItem
{
get => _SelectedItem;
set {
set
{
var success = SetProperty(ref _SelectedItem, value, nameof(SelectedItem));
if (!success)
@@ -169,7 +170,7 @@ namespace BeWo.ViewModel.View.Administration
OpenAddRoutineDialogCommand.RaiseCanExecuteChanged();
OpenEditRoutineDialogCommand.RaiseCanExecuteChanged();
DeleteRoutineCommand.RaiseCanExecuteChanged();
ChangeFavoritenStateRoutineCommand.RaiseCanExecuteChanged();
ChangeFavoritenStateRoutineCommand.RaiseCanExecuteChanged();
}
public void UpdateItemCommands()
{
@@ -185,13 +186,19 @@ namespace BeWo.ViewModel.View.Administration
listvm =>
{
Folders = listvm;
if (Folders.VMList.Count > 0 && Folders.VMList[0].DataContract.Oid == -5)
if (Folders.VMList.Count > 0
&& Folders.VMList[0].DataContract.Oid == -51
&& Folders.VMList[0].SubFolders.Count > 0
&& Folders.VMList[0].SubFolders.VMList[0].DataContract.Oid == -5)
{
Favoriten = Folders.VMList[0];
Favoriten = Folders.VMList[0].SubFolders.VMList[0];
}
if (Folders.VMList.Count > 1)
Folders.VMList[1].IsSelected = true;
if (Folders.VMList.Count > 0
&& Folders.VMList[0].DataContract.Oid == -51
&& Folders.VMList[0].SubFolders.Count > 1
&& Folders.VMList[0].SubFolders.VMList[1].DataContract.Oid == -1)
Folders.VMList[0].SubFolders.VMList[1].IsSelected = true;
FirePropertyChanged(nameof(Folders));
});