private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
//SI clicked
unit_temp.Text = "Deg.C";
unit_ap.Text = "HPa";
unit_dp.Text = "Deg.C";
unit_Pws.Text = "HPa";
unit_mol_mass_over_mol_wt.Text = "g/kg";
unit_mixed_gas_ratio.Text = "g/kg";
unit_enthalpy.Text = "KJ/Kg";
textBox1.Text = "";
textBox2.Text = "";
flagWhenFirstRadioClick = 1;
if(flagForSecondRadioClick == 1)
{
//First second is clicked now need to be converted
double pressureValue = double.Parse(tb_atm_pressure.Text);
// double IP_pressure = 33.8639 * Patm;//in hpa now
pressureValue = pressureValue* 33.8639;// now this in in Hpa
tb_atm_pressure.Text = pressureValue.ToString();
flagForSecondRadioClick = 0;
}
if(tb_atm_pressure.Text == "")
{
//if empty then
tb_atm_pressure.Text = "1013";
}
textBox1.Text = "";
textBox2.Text = "";
textBox4.Text = "";
textBox8.Text = "";
textBox10.Text = "";
textBox11.Text = "";
textBox9.Text = "";
}