} // radioBtn_CircleRod_CheckedChanged void radioBtn_CircleTube_CheckedChanged(object sender, EventArgs e) { if (radioBtn_CircleTube.Checked == true) { profile = Profile.CircleRing; pict_01.Image = CalcStress_003.Properties.Resources.CircleTube; TBox_1.name1 = "D, mm"; TBox_2.name1 = "S, mm"; lbl_TBox_1.Text = TBox_1.name1; lbl_TBox_2.Text = TBox_2.name1; TBox_2.Show(); lbl_TBox_2.Show(); TBox_3.Hide(); lbl_TBox_3.Hide(); if (radioBtn_Cut.Checked == true) { radioBtn_Stretch.Checked = true; } radioBtn_Twist.Enabled = true; radioBtn_Cut.Enabled = false; radioBtn_CircleTube.TabStop = false; TBox_10.Text = ""; TBox_11.Text = ""; Result_1_Clear(); Result_2_Clear(); TBox_1.Focus(); } // if (radioBtn_CircleRod.Checked == true) } // radioBtn_CircleTube_CheckedChanged
} // radioBtn_CircleTube_CheckedChanged void radioBtn_RectangleRod_CheckedChanged(object sender, EventArgs e) { if (radioBtn_RectangleRod.Checked == true) { profile = Profile.Rectangle; pict_01.Image = CalcStress_003.Properties.Resources.RectangleRod; TBox_1.name1 = "B, mm"; TBox_2.name1 = "H, mm"; lbl_TBox_1.Text = TBox_1.name1; lbl_TBox_2.Text = TBox_2.name1; TBox_2.Show(); lbl_TBox_2.Show(); TBox_3.Hide(); lbl_TBox_3.Hide(); radioBtn_Twist.Enabled = true; radioBtn_Cut.Enabled = true; radioBtn_RectangleRod.TabStop = false; TBox_10.Text = ""; TBox_11.Text = ""; Result_1_Clear(); Result_2_Clear(); TBox_1.Focus(); } // if (radioBtn_RectangleRod.Checked == true) } // radioBtn_RectangleRod_CheckedChanged