/// <summary> /// Link controls to properties. /// </summary> private void LinkControls() { propertySet.LinkControlToProperty("MATID", false, cbMat); propertySet.LinkControlToProperty("EFID", false, cbEf); propertySet.LinkControlToProperty("EBID", false, cbEb); propertySet.LinkControlToProperty("ELID", false, cbEl); propertySet.LinkControlToProperty("ERID", false, cbEr); propertySet.CutlistQuantity = nudQ.Value.ToString(); if (Properties.Settings.Default.Testing) { propertySet.LinkControlToProperty("CUTLIST MATERIAL", false, cbMat); propertySet.LinkControlToProperty("EDGE FRONT (L)", false, cbEf); propertySet.LinkControlToProperty("EDGE BACK (L)", false, cbEb); propertySet.LinkControlToProperty("EDGE LEFT (W)", false, cbEl); propertySet.LinkControlToProperty("EDGE RIGHT (W)", false, cbEr); } if (propertySet.cutlistData.ReturnHash(propertySet) == propertySet.Hash) { propertySet.Primary = true; } else { propertySet.Primary = false; } }
private void LinkControls() { propertySet.LinkControlToProperty("OP1ID", true, cbOp1); propertySet.LinkControlToProperty("OP2ID", true, cbOp2); propertySet.LinkControlToProperty("OP3ID", true, cbOp3); propertySet.LinkControlToProperty("OP4ID", true, cbOp4); propertySet.LinkControlToProperty("OP5ID", true, cbOp5); if (Properties.Settings.Default.Testing) { propertySet.LinkControlToProperty("OP1", true, cbOp1); propertySet.LinkControlToProperty("OP2", true, cbOp2); propertySet.LinkControlToProperty("OP3", true, cbOp3); propertySet.LinkControlToProperty("OP4", true, cbOp4); propertySet.LinkControlToProperty("OP5", true, cbOp5); } }
private void LinkControls() { cnc1 = tbCNC1.Text; cnc2 = tbCNC2.Text; ol = tbOverL.Text; ow = tbOverW.Text; if (chkupd != null) { chkupd = chUpdate.Checked; } tbCNC1.Text = string.Empty; tbCNC2.Text = string.Empty; tbOverL.Text = string.Empty; tbOverW.Text = string.Empty; tbBlankW.Text = string.Empty; tbBlankL.Text = string.Empty; int.TryParse(tbPPB.Text, out ppb); propertySet.LinkControlToProperty("BLANK QTY", true, this.tbPPB); propertySet.LinkControlToProperty("CNC1", true, this.tbCNC1); propertySet.LinkControlToProperty("CNC2", true, this.tbCNC2); propertySet.LinkControlToProperty("OVERL", true, this.tbOverL); propertySet.LinkControlToProperty("OVERW", true, this.tbOverW); propertySet.LinkControlToProperty("UPDATE CNC", true, this.chUpdate); propertySet.GetProperty("UPDATE CNC").Type = swCustomInfoType_e.swCustomInfoYesOrNo; propertySet.UpdCheckedAtStart = propertySet.GetProperty("UPDATE CNC").Value.ToUpper().Contains("YES"); }
private void LinkControls() { tbLength.Text = string.Empty; tbWidth.Text = string.Empty; tbThick.Text = string.Empty; tbWallThick.Text = string.Empty; tbComment.Text = string.Empty; propertySet.LinkControlToProperty("DESCRIPTION", true, tbDescription); propertySet.LinkControlToProperty("LENGTH", true, tbLength); propertySet.LinkControlToProperty("WIDTH", true, tbWidth); propertySet.LinkControlToProperty("THICKNESS", true, tbThick); propertySet.LinkControlToProperty("WALL THICKNESS", true, tbWallThick); propertySet.LinkControlToProperty("COMMENT", true, tbComment); UpdateRes(propertySet.GetProperty("LENGTH"), labResLength); UpdateRes(propertySet.GetProperty("WIDTH"), labResWidth); UpdateRes(propertySet.GetProperty("THICKNESS"), labResThickness); if (propertySet.GetProperty("WALL THICKNESS") != null) { UpdateRes(propertySet.GetProperty("WALL THICKNESS"), labResWallThickness); } UpdateLnW(); }