public CoolingJob(List <DataUnit> dataCollection) : base(dataCollection) { this.layerPara = GlobalModel.Params.LayerConfig.LayerCooling; int id = dataCollection[0].AttachedLayerId.Value; this.subLayerPara = GlobalModel.Params.LayerConfig.LayerCrafts[id]; this.NeedToBlowingOff = !this.subLayerPara.IsKeepPuffing; }
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); }
public UCLayerCraftPara(LayerCraftModel model, string key) : this() { this.Model = this.mvvmContext1.GetViewModel <LayerCraftModel>(); this.key = key; CopyUtil.CopyModel(this.Model, model ?? DefaultParaHelper.GetDefaultLayerCraftModel()); this.InitializeBindings(); this.InitializeCurve(); var monitor = new UnitMonitor(this, () => this.Model.RaisePropertiesChanged()); monitor.Listen(); UnitObserverFacade.Instance.SpeedUnitObserver.UnitChanged += x => this.InitializeCurve(); }
private void InitializeTabPages(List <int> layers) { foreach (int layer in layers) { LayerCraftModel model = null; if (this.Model.LayerCrafts.ContainsKey(layer)) { model = this.Model.LayerCrafts[layer]; } if (!this.ucLayers.ContainsKey(layer)) { TabPage tab = new TabPage(); tab.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(235)))), ((int)(((byte)(236)))), ((int)(((byte)(239))))); tab.Location = new System.Drawing.Point(4, 23); tab.Padding = new System.Windows.Forms.Padding(3); tab.Size = new System.Drawing.Size(731, 569); if (layer == 15) { tab.Text = "最先加工"; } else if (layer == 16) { tab.Text = "最后加工"; } else { tab.Text = "工艺" + layer; } var ucLayer = new UCLayerCraftPara(model, tab.Text) { Dock = DockStyle.Fill }; ucLayer.OnEvaporationFilmChanged += UcLayer_OnEvaporationFilmChanged; ucLayer.OnPathRecoolingChanged += UcLayer_OnPathRecoolingChanged; tab.Controls.Add(ucLayer); this.tabControl1.TabPages.Add(tab); this.ucLayers.Add(layer, ucLayer); } } }
public PointCutJob(List <DataUnit> dataCollection) : base(dataCollection) { this.layerPara = GlobalModel.Params.LayerConfig.LayerCrafts[dataCollection[0].LayerId]; }