コード例 #1
0
ファイル: CutJob.cs プロジェクト: liyangTeam/WSXCut
        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);
        }
コード例 #2
0
ファイル: EvaporationJob.cs プロジェクト: liyangTeam/WSXCut
        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);
        }