public void WelcomeScreen_Load(object sender, EventArgs e) { string con = MyMethodsLib.GetConnectionString(); unameBox.Text = Username; string height = MyMethodsLib.GetHeightFromDbs(Username, con).ToString(); weightBox.Text = MyMethodsLib.GetWeightFromDbs(Username, con).ToString(); BMIBox.Text = MyMethodsLib.CalculateBMI(this.weightBox.Text.ToString(), height); double kgToLoose = MyMethodsLib.KgToLoose(Username, weightBox.Text); kgBox.Text = MyMethodsLib.WeightResultOutput(Username, kgToLoose, weightBox.Text); intakeBox.Text = MyMethodsLib.CaloriesIntake(Username).ToString(); dietModeBox.Text = MyMethodsLib.GetDietModeFromDbs(Username, MyMethodsLib.GetConnectionString()); SetupCharts4Projection(Username); }