예제 #1
0
 public DeviceVm(DeviceVm device)
 {
     //make a copy
     ArticelNo    = device.ArticelNo;
     Description  = device.Description;
     Manufacturer = device.Manufacturer;
     Price        = device.Price;
     Typ          = device.Typ;
 }
예제 #2
0
 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), ""));
     });
 }