Kanalschaden werden richtig geparsed
This commit is contained in:
@@ -19,9 +19,7 @@ namespace DaSaSo.ViewModel
|
||||
{
|
||||
public ObservableCollection<Client> Clients { get; }
|
||||
private Client? _selectedClient;
|
||||
private IDataService<Client> _dataService;
|
||||
private readonly IRenavigator renavigator;
|
||||
IEnumerable<Client>? result;
|
||||
private readonly IDataService<Client> _dataService;
|
||||
bool _isLoading = true;
|
||||
|
||||
public ICommand SelectCommand { get; set; }
|
||||
@@ -63,19 +61,14 @@ namespace DaSaSo.ViewModel
|
||||
{
|
||||
Clients = new ObservableCollection<Client>();
|
||||
_dataService = dataService;
|
||||
this.renavigator = renavigator;
|
||||
|
||||
LoadClient();
|
||||
SelectCommand = new SelectClientCommand(actualProject, this); //= new RelayCommand(SelectClient, () => SelectedClient != null);
|
||||
SelectCommand = new SelectClientCommand(dataService,actualProject, this);
|
||||
EditCommand = new EditClientCommand(_dataService,actualProject, editRenavigator, this);
|
||||
AddNewClientCommand = new AddClientCommand(_dataService, actualProject, editRenavigator, this);
|
||||
|
||||
}
|
||||
|
||||
~ClientListViewModel()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public async void LoadClient()
|
||||
{
|
||||
IsLoading = true;
|
||||
@@ -86,7 +79,7 @@ namespace DaSaSo.ViewModel
|
||||
IsLoading = false;
|
||||
}
|
||||
|
||||
private void InitCollection(ObservableCollection<Client> target, IEnumerable<Client> source)
|
||||
private static void InitCollection(ObservableCollection<Client> target, IEnumerable<Client> source)
|
||||
{
|
||||
target.Clear();
|
||||
foreach (var i in source)
|
||||
|
||||
Reference in New Issue
Block a user