private void ConvertBtn_Click(object sender, EventArgs e)
{
float Temp;
int Hours = Int32.Parse(HoursBox.Value.ToString());
int Min = Int32.Parse(MinutesBox.Value.ToString());
int Sec = Int32.Parse(SecondsBox.Value.ToString());
if (Min > 0)
{
Temp = float.Parse((Min * 60).ToString());
Sec += Int32.Parse((Math.Round(Temp, 0)).ToString());
}
if (Hours > 0)
{
Temp = float.Parse((Hours * 3600).ToString());
Sec += Int32.Parse((Math.Round(Temp, 0)).ToString());
}
LastValue = Sec;
this.DialogResult = DialogResult.OK;
this.Close();
}