Achtung. Überarbeitung Closing AnimatedBeWoWindow
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user