} // radioBtn_RectangleTube_CheckedChanged // Сила void radioBtnStretch_CheckedChanged(object sender, EventArgs e) { //(0)Stretch - растяжение//(1)Bend - изгиб//(2)Twist - кручение//(3)Cut - срез//(4)Crush - смятие if (radioBtn_Stretch.Checked == true) { typeload = TypeLoad.Stretch; pict_02.Image = CalcStress_003.Properties.Resources.ForceStretch; TBox_10.name1 = "F, kg"; lbl_TBox_10.Text = TBox_10.name1; if (TBox_11.Visible) { TBox_11.Hide(); lbl_TBox_11.Hide(); } radioBtn_Stretch.TabStop = false; listBoxSteel.set_actual_Stress_Max(); listBoxSteel.show_Data_Of_Steel(); TBox_10.Text = ""; TBox_11.Text = ""; Result_2_Clear(); TBox_10.Focus(); } // if (radioBtn_RectangleTube.Checked == true) } // radioBtnStretch_CheckedChanged
// Профиль void radioBtn_CircleRod_CheckedChanged(object sender, EventArgs e) { if (radioBtn_CircleRod.Checked == true) { profile = Profile.Circle; pict_01.Image = CalcStress_003.Properties.Resources.CircleRod; TBox_1.name1 = "D, mm"; lbl_TBox_1.Text = TBox_1.name1; TBox_2.Hide(); lbl_TBox_2.Hide(); TBox_3.Hide(); lbl_TBox_3.Hide(); radioBtn_Twist.Enabled = true; radioBtn_Cut.Enabled = true; radioBtn_CircleRod.TabStop = false; TBox_10.Text = ""; TBox_11.Text = ""; Result_1_Clear(); Result_2_Clear(); TBox_1.Focus(); } // if (radioBtn_CircleRod.Checked == true) } // radioBtn_CircleRod_CheckedChanged
} // end of - string makeString() // warnShow(ref TxtBoxDbl a, string msg) void warnShow(ref TxtBoxDbl a, string msg) { Result_1.BackColor = System.Drawing.Color.LightPink; Result_1.Text = msg; a.Focus(); } // end of - warnShow()