protected void cmdBuildFinish_Click(object sender, EventArgs e) { if (!isValid()) { return; } if (!editAll()) { return; } String err = ""; if (!Data.setActualBaseDiameterIfDouble(txtNewBaseRadius.Text)) { err += "The revised base diameter must be numeric<br />"; lblErrHead.Visible = true; return; } lblErrHead.Visible = false; BuildGCode bc = new BuildGCode(); bc.buildFinalPass(); Server.Transfer("~/Gui/ViewGCode.aspx"); }
protected void cmdBuildRough_Click(object sender, EventArgs e) { if (!isValid()) { return; } if (!editAll()) { return; } BuildGCode bc = new BuildGCode(); bc.buildRoughingPasses(); Server.Transfer("~/Gui/ViewGCode.aspx"); }