protected void OnEquipmentRegistered(object o, EquipmentCreatedEventArgs args) { var equipment = MyOrmDialog.UoW.GetById <Equipment>(args.Equipment[0].Id); equipmentToSetSerial.NewEquipment = equipment; equipmentToSetSerial.EquipmentId = equipment.Id; equipmentToSetSerial.Returned = true; //OnEquipmentListChanged(); }
void OnSlaveDlgEquipmentCreated(object sender, EquipmentCreatedEventArgs e) { foreach (var equ in e.Equipment) { DocumentUoW.Root.AddItem(new IncomingInvoiceItem { Equipment = equ, Nomenclature = equ.Nomenclature, Amount = 1 }); } }