Beispiel #1
0
 private void textBox6_TextChanged(object sender, EventArgs e)
 {
     try
     {
         SurfaceRoughnessRz.Text = ConversionRoughnessRzAndRa.stringRaToRz(SurfaceRoughnessRa.Text);
     }
     catch { SurfaceRoughnessRz.Text = ""; }
 }
Beispiel #2
0
        public void insertParametersOfPartInTextboxes(MainForm form)
        {
            form.DiameterOfPart.Text = this.diameterOfPart.ToString();

            form.TypeOfPart.SelectedIndex             = this.typeOfPart.getIndex();
            form.TypeOfAllowance.SelectedIndex        = this.typeOfAllowance.getIndex();
            form.TypeOfProcessedSurface.SelectedIndex = this.typeOfProcessedSurface.getIndex();

            form.SurfaceRoughness.Text = ConversionRoughnessRzAndRa.RzToRa(this.surfaceRoughnessRz).ToString();
            form.Allowance.Text        = this.allowance.ToString();
            form.HoleDepth.Text        = this.holeDepth.ToString();
        }
Beispiel #3
0
 public ParametersOfSurface(double diameterOfPart,
                            TypeOfPart typeOfPart, TypeOfPart typeOfAllowance, TypeOfPart typeOfProcessedSurface,
                            double surfaceRoughnessRa, double allowance, double holeDepth = 0)
 {
     this.diameterOfPart         = diameterOfPart;
     this.typeOfPart             = typeOfPart;
     this.typeOfAllowance        = typeOfAllowance;
     this.typeOfProcessedSurface = typeOfProcessedSurface;
     this.surfaceRoughnessRz     = ConversionRoughnessRzAndRa.RaToRz(surfaceRoughnessRa);
     this.allowance = allowance;
     this.holeDepth = holeDepth;
 }
        private static void insertParametersIntextBox(FormOfWorkWithDatabase form, int index)
        {
            DependenceSurface   surface    = surfaces[index];
            ParametersOfSurface parameters = surface.getParametersOfSurface();

            form.diameterOfSurface.Text = parameters.getDiameterOfPart().ToString();

            form.typeOfPart.Text             = parameters.getTypeOfPart().getName();
            form.typeOfAllowance.Text        = parameters.getTypeOfAllowance().getName();
            form.TypeOfProcessedSurface.Text = parameters.getTypeOfProcessedSurface().getName();

            form.SurfaceRoughness.Text = ConversionRoughnessRzAndRa.RzToRa(parameters.getSurfaceRoughnessRz()).ToString();
            form.HoleDepth.Text        = parameters.getHoleDepth().ToString();
            form.Tolerance.Text        = parameters.getAllowance().ToString();
        }
Beispiel #5
0
 public void setSurfaceRoughnessRa(double surfaceRoughness)
 {
     this.surfaceRoughnessRz = ConversionRoughnessRzAndRa.RaToRz(surfaceRoughness);
 }