WhoMaintainsService done

This commit is contained in:
2024-05-05 17:11:35 +02:00
parent 9cf8ce697e
commit 0f93e5fd25
7 changed files with 137 additions and 2 deletions

View File

@@ -23,12 +23,14 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF.ViewModels
(UpdateServiceCommand as RelayCommand).NotifyCanExecuteChanged();
(DeleteServiceCommand as RelayCommand).NotifyCanExecuteChanged();
(GetResponsibleEmployeeCommand as RelayCommand).NotifyCanExecuteChanged();
(GetMaintainersCommand as RelayCommand).NotifyCanExecuteChanged();
}
}
public ICommand UpdateServiceCommand { get; set; }
public ICommand DeleteServiceCommand { get; set; }
public ICommand GetResponsibleEmployeeCommand { get; set; }
public ICommand GetMaintainersCommand { get; set; }
public static bool IsInDesignMode
{
@@ -72,6 +74,16 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF.ViewModels
{
return SelectedService != null;
});
GetMaintainersCommand = new RelayCommand(() =>
{
Window window = new GetMaintainers(SelectedService);
window.Show();
},
() =>
{
return SelectedService != null;
});
}
}
}