public WorkerVM() { _workerCatalog = WorkerCatalog.Instance; _workers = _workerCatalog.Workers; _displayWorkers = _workerCatalog.Workers; _deleteCommand = new RelayCommand(Delete, OrderIsSelected); _workerEditCommand = new WorkerEditCommand(this, _workerCatalog); }
public WorkerEditCommand(WorkerVM Worker, WorkerCatalog workerCatalog) { _workerCatalog = workerCatalog; _workerVM = Worker; }