public CutJob(List <DataUnit> dataCollection) : base(dataCollection) { int layerId = base.GetDataCollection()[0].LayerId; this.layerPara = GlobalModel.Params.LayerConfig.LayerCrafts[layerId]; this.laserController = new LaserControllerImp(this.layerPara.PwrCtrlPara, this.layerPara.PowerPercent, this.layerPara.PulseFrequency); this.laserController.LaserParaChanged += x => OperationEngine.Instance.NotifyLaserParaChanged(x); }
public EvaporationJob(List <DataUnit> dataCollection) : base(dataCollection) { this.layerPara = GlobalModel.Params.LayerConfig.LayerEvaporate; int id = dataCollection[0].AttachedLayerId.Value; this.subLayerPara = GlobalModel.Params.LayerConfig.LayerCrafts[id]; this.laserController = new LaserControllerImp(this.layerPara.PwrCtrlPara, this.layerPara.PowerPercent, this.layerPara.PulseFrequency); this.laserController.LaserParaChanged += x => OperationEngine.Instance.NotifyLaserParaChanged(x); }