using System;
|
using System.Collections.Generic;
|
using System.Collections.ObjectModel;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
using XImagingXhandler.XDAL;
|
namespace XHandler.View.Consumables
|
{
|
/// <summary>
|
/// 耗材备忘录
|
/// </summary>
|
public class LabwareMemento
|
{
|
public ObservableCollection<Labware> LabwareBack { get; set; }
|
public LabwareMemento(ObservableCollection<Labware> labwares)
|
{
|
if(labwares==null)
|
{
|
return;
|
}
|
LabwareBack = new ObservableCollection<Labware>();
|
foreach (Labware l in labwares)
|
{
|
Labware labware = new Labware();
|
labware.Copy(l);
|
LabwareBack.Add(labware);
|
}
|
}
|
}
|
}
|