protected void ButtonEnter_Click(object sender, EventArgs e)
        {
            double input           = Convert.ToDouble(TextBoxIn.Text);
            string unit            = DropDownListMeasure.SelectedItem.Text;
            string selectedUnitIn  = DropDownListIn.SelectedItem.Text;
            string selectedUnitOut = DropDownListOut.SelectedItem.Text;
            double output          = 0;
            double temp            = 0;

            switch (unit)
            {
            case ("Length"):
                Length l = new Length();     //create instance of length class for length conversions
                temp            = l.MeterConversion(selectedUnitIn, input);
                output          = l.FinalConversion(selectedUnitOut, temp);
                TextBoxOut.Text = Convert.ToString(output);
                break;

            case ("Mass"):
                Mass m = new Mass();
                temp            = m.GramConversion(selectedUnitIn, input);
                output          = m.FinalConversion(selectedUnitOut, temp);
                TextBoxOut.Text = Convert.ToString(output);
                break;

            case ("Speed"):
                Speed s = new Speed();
                temp            = s.SpeedConversion(selectedUnitIn, input);
                output          = s.FinalConversion(selectedUnitOut, temp);
                TextBoxOut.Text = Convert.ToString(output);
                break;

            case ("Temperature"):
                Temperature t = new Temperature();
                temp            = t.TempConversion(selectedUnitIn, input);
                output          = t.FinalConversion(selectedUnitOut, temp);
                TextBoxOut.Text = Convert.ToString(output);
                break;

            case ("Time"):
                Time i = new Time();
                temp            = i.TimeConversion(selectedUnitIn, input);
                output          = i.FinalConversion(selectedUnitOut, temp);
                TextBoxOut.Text = Convert.ToString(output);
                break;

            case ("Volume"):
                Volume v = new Volume();
                temp            = v.VolumeConversion(selectedUnitIn, input);
                output          = v.FinalConversion(selectedUnitOut, temp);
                TextBoxOut.Text = Convert.ToString(output);
                break;
            }
        }