public DeviceVm(DeviceVm device) { //make a copy ArticelNo = device.ArticelNo; Description = device.Description; Manufacturer = device.Manufacturer; Price = device.Price; Typ = device.Typ; }
public AddVm() { Types = new List <string>() { "driller", "milling machine", "saw" }; Manufacturers = new List <string>() { "Bosch", "Hilti", "Makita" }; Device = new DeviceVm(); SaveBtnClickedCmd = new RelayCommand(() => { messenger.Send(new NotificationMessage <DeviceVm>(new DeviceVm(Device), "")); }); }