//---------------------------------------------------// private void button1_Click(object sender, EventArgs e) { sliFile = new clSliceDataLib(); sliFile.readFromFile(txtSliFileName.Text); sliceLayer.Minimum = 0; sliceLayer.Value = 0; sliceLayer.Maximum = (int)Math.Floor(sliFile.getMaxLayerPos() / sliFile.getLayerThickness()); lblLayerThickness.Text = d2s(sliFile.getLayerThickness()) + " mm"; System.Diagnostics.Debug.Print(sliFile.getLastError()); refreshPartNameList(); showLayer(); }
//---------------------------------------------------// private void button1_Click(object sender, EventArgs e) { sliFile = new clSliceDataLib(); sliFile.readFromFile(txtSliFileName.Text); sliceLayer.Minimum = 0; sliceLayer.Value = 0; sliceLayer.Maximum = (int)Math.Floor(sliFile.getMaxLayerPos() / sliFile.getLayerThickness()); lblLayerThickness.Text = d2s(sliFile.getLayerThickness()) +" mm"; System.Diagnostics.Debug.Print( sliFile.getLastError()); refreshPartNameList(); showLayer(); }